pub struct RouteMatch<'a> {
pub vec: Vec<&'a str>,
pub map: HashMap<&'a str, &'a str>,
}
Expand description
For a successful match, this structure says how any wildcard segments were matched.
Fields§
§vec: Vec<&'a str>
Wildcard matches in the order they appeared in the path.
map: HashMap<&'a str, &'a str>
Named wildcard matches, indexed by name.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RouteMatch<'a>
impl<'a> RefUnwindSafe for RouteMatch<'a>
impl<'a> Send for RouteMatch<'a>
impl<'a> Sync for RouteMatch<'a>
impl<'a> Unpin for RouteMatch<'a>
impl<'a> UnwindSafe for RouteMatch<'a>
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