pub struct Match<'k, 'v, V> {
pub value: V,
pub params: Params<'k, 'v>,
}
Expand description
A successful match consisting of the registered value
and URL parameters, returned by Router::at
.
Fields§
§value: V
The value stored under the matched node.
params: Params<'k, 'v>
The route parameters. See parameters for more details.
Trait Implementations§
Auto Trait Implementations§
impl<'k, 'v, V> Freeze for Match<'k, 'v, V>where
V: Freeze,
impl<'k, 'v, V> RefUnwindSafe for Match<'k, 'v, V>where
V: RefUnwindSafe,
impl<'k, 'v, V> Send for Match<'k, 'v, V>where
V: Send,
impl<'k, 'v, V> Sync for Match<'k, 'v, V>where
V: Sync,
impl<'k, 'v, V> Unpin for Match<'k, 'v, V>where
V: Unpin,
impl<'k, 'v, V> UnwindSafe for Match<'k, 'v, V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.