pub trait URLPatternMethods<D>where
D: DomTypes,{
// Required methods
fn Protocol(&self) -> USVString;
fn Username(&self) -> USVString;
fn Password(&self) -> USVString;
fn Hostname(&self) -> USVString;
fn Port(&self) -> USVString;
fn Pathname(&self) -> USVString;
fn Search(&self) -> USVString;
fn Hash(&self) -> USVString;
fn HasRegExpGroups(&self) -> bool;
fn Constructor(
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
input: &URLPatternInit,
options: &URLPatternOptions,
) -> Result<Root<Dom<<D as DomTypes>::URLPattern>>, Error>;
}
Required Methods§
fn Protocol(&self) -> USVString
fn Username(&self) -> USVString
fn Password(&self) -> USVString
fn Hostname(&self) -> USVString
fn Port(&self) -> USVString
fn Pathname(&self) -> USVString
fn Search(&self) -> USVString
fn Hash(&self) -> USVString
fn HasRegExpGroups(&self) -> bool
fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, input: &URLPatternInit, options: &URLPatternOptions, ) -> Result<Root<Dom<<D as DomTypes>::URLPattern>>, Error>
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.