pub trait URLMethods<D: DomTypes> {
Show 28 methods // Required methods fn Parse( global: &D::GlobalScope, url: USVString, base: Option<USVString>, _can_gc: CanGc, ) -> Option<DomRoot<D::URL>>; fn CanParse( global: &D::GlobalScope, url: USVString, base: Option<USVString>, ) -> bool; fn Href(&self) -> USVString; fn SetHref(&self, value: USVString) -> ErrorResult; fn Origin(&self) -> USVString; fn Protocol(&self) -> USVString; fn SetProtocol(&self, value: USVString); fn Username(&self) -> USVString; fn SetUsername(&self, value: USVString); fn Password(&self) -> USVString; fn SetPassword(&self, value: USVString); fn Host(&self) -> USVString; fn SetHost(&self, value: USVString); fn Hostname(&self) -> USVString; fn SetHostname(&self, value: USVString); fn Port(&self) -> USVString; fn SetPort(&self, value: USVString); fn Pathname(&self) -> USVString; fn SetPathname(&self, value: USVString); fn Search(&self) -> USVString; fn SetSearch(&self, value: USVString); fn SearchParams(&self, _can_gc: CanGc) -> DomRoot<D::URLSearchParams>; fn Hash(&self) -> USVString; fn SetHash(&self, value: USVString); fn CreateObjectURL(global: &D::GlobalScope, blob: &D::Blob) -> DOMString; fn RevokeObjectURL(global: &D::GlobalScope, url: DOMString); fn ToJSON(&self) -> USVString; fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, url: USVString, base: Option<USVString>, ) -> Fallible<DomRoot<D::URL>>;
}

Required Methods§

Source

fn Parse( global: &D::GlobalScope, url: USVString, base: Option<USVString>, _can_gc: CanGc, ) -> Option<DomRoot<D::URL>>

Source

fn CanParse( global: &D::GlobalScope, url: USVString, base: Option<USVString>, ) -> bool

Source

fn Href(&self) -> USVString

Source

fn SetHref(&self, value: USVString) -> ErrorResult

Source

fn Origin(&self) -> USVString

Source

fn Protocol(&self) -> USVString

Source

fn SetProtocol(&self, value: USVString)

Source

fn Username(&self) -> USVString

Source

fn SetUsername(&self, value: USVString)

Source

fn Password(&self) -> USVString

Source

fn SetPassword(&self, value: USVString)

Source

fn Host(&self) -> USVString

Source

fn SetHost(&self, value: USVString)

Source

fn Hostname(&self) -> USVString

Source

fn SetHostname(&self, value: USVString)

Source

fn Port(&self) -> USVString

Source

fn SetPort(&self, value: USVString)

Source

fn Pathname(&self) -> USVString

Source

fn SetPathname(&self, value: USVString)

Source

fn Search(&self) -> USVString

Source

fn SetSearch(&self, value: USVString)

Source

fn SearchParams(&self, _can_gc: CanGc) -> DomRoot<D::URLSearchParams>

Source

fn Hash(&self) -> USVString

Source

fn SetHash(&self, value: USVString)

Source

fn CreateObjectURL(global: &D::GlobalScope, blob: &D::Blob) -> DOMString

Source

fn RevokeObjectURL(global: &D::GlobalScope, url: DOMString)

Source

fn ToJSON(&self) -> USVString

Source

fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, url: USVString, base: Option<USVString>, ) -> Fallible<DomRoot<D::URL>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§