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§
Trait Implementations§
Source§impl VcValueTrait for Box<dyn RouteMatcher>
impl VcValueTrait for Box<dyn RouteMatcher>
type ValueTrait = dyn RouteMatcher
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
Source§fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
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.