pub trait URLPatternMethods<D>where
    D: DomTypes,{
Show 13 methods
    // Required methods
    fn Test(
        &self,
        input: USVStringOrURLPatternInit,
        baseURL: Option<USVString>,
    ) -> Result<bool, Error>;
    fn Exec(
        &self,
        input: USVStringOrURLPatternInit,
        baseURL: Option<USVString>,
    ) -> Result<Option<URLPatternResult>, Error>;
    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: USVStringOrURLPatternInit,
        baseURL: USVString,
        options: &URLPatternOptions,
    ) -> Result<Root<Dom<<D as DomTypes>::URLPattern>>, Error>;
    fn Constructor_(
        global: &<D as DomTypes>::GlobalScope,
        proto: Option<Handle<'_, *mut JSObject>>,
        can_gc: CanGc,
        input: USVStringOrURLPatternInit,
        options: &URLPatternOptions,
    ) -> Result<Root<Dom<<D as DomTypes>::URLPattern>>, Error>;
}Required Methods§
fn Test( &self, input: USVStringOrURLPatternInit, baseURL: Option<USVString>, ) -> Result<bool, Error>
fn Exec( &self, input: USVStringOrURLPatternInit, baseURL: Option<USVString>, ) -> Result<Option<URLPatternResult>, Error>
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: USVStringOrURLPatternInit, baseURL: USVString, options: &URLPatternOptions, ) -> Result<Root<Dom<<D as DomTypes>::URLPattern>>, Error>
fn Constructor_( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, input: USVStringOrURLPatternInit, 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.