Struct yew_router_nested::switch::LeadingSlash [−][src]
pub struct LeadingSlash<T>(pub T);
Expand description
Wrapper that requires that an implementor of Switch must start with a /
.
This is needed for any non-derived type provided by yew-router to be used by itself.
This is because route strings will almost always start with /
, so in order to get a std type
with the rest
attribute, without a specified leading /
, this wrapper is needed.
Tuple Fields
0: T
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Get self from a part of the state
Build part of a route from itself.
Based on a route, possibly produce an itself.
Called when the key (the named capture group) can’t be located. Instead of failing outright, a default item can be provided instead. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for LeadingSlash<T> where
T: RefUnwindSafe,
impl<T> Send for LeadingSlash<T> where
T: Send,
impl<T> Sync for LeadingSlash<T> where
T: Sync,
impl<T> Unpin for LeadingSlash<T> where
T: Unpin,
impl<T> UnwindSafe for LeadingSlash<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Convert self
to a value of a Properties
struct.
Convert self
to a value of a Properties
struct.