Trait RouteMatcher

Source
pub trait RouteMatcher:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required methods
    fn matches(self: Vc<Self>, path: RcStr) -> Vc<bool>
       where Self: Sized;
    fn params(self: Vc<Self>, path: RcStr) -> Vc<Params>
       where Self: Sized;
}
Expand description

Extracts parameters from a URL path (Vc version)

Required Methods§

Source

fn matches(self: Vc<Self>, path: RcStr) -> Vc<bool>
where Self: Sized,

Returns whether the given path is a match for the route.

Source

fn params(self: Vc<Self>, path: RcStr) -> Vc<Params>
where Self: Sized,

Returns the parameters extracted from the given path.

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn RouteMatcher>

Source§

type ValueTrait = dyn RouteMatcher

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>

Returns the vtable for an implementation of this trait. Panics if ValueTypeId does not implement the trait.
Source§

impl Dynamic<Box<dyn RouteMatcher>> for Box<dyn RouteMatcher>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn RouteMatcher>

Source§

impl Upcast<Box<dyn RouteMatcher>> for Box<dyn RouteMatcher>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn RouteMatcher>

Implementors§