pub trait WorkerLocationMethods<D: DomTypes> {
// Required methods
fn Href(&self) -> USVString;
fn Origin(&self) -> USVString;
fn Protocol(&self) -> USVString;
fn Host(&self) -> USVString;
fn Hostname(&self) -> USVString;
fn Port(&self) -> USVString;
fn Pathname(&self) -> USVString;
fn Search(&self) -> USVString;
fn Hash(&self) -> USVString;
}Required Methods§
fn Href(&self) -> USVString
fn Origin(&self) -> USVString
fn Protocol(&self) -> USVString
fn Host(&self) -> USVString
fn Hostname(&self) -> USVString
fn Port(&self) -> USVString
fn Pathname(&self) -> USVString
fn Search(&self) -> USVString
fn Hash(&self) -> USVString
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".