pub struct Path<'a, 'b, T> {
pub id: &'a usize,
pub value: &'a T,
pub pieces: &'a [Piece],
pub raws: SmallVec<[&'b str; 4]>,
}
Expand description
Matched route path infomation.
Fields
id: &'a usize
value: &'a T
pieces: &'a [Piece]
raws: SmallVec<[&'b str; 4]>
Implementations
sourceimpl<'a, 'b, T> Path<'a, 'b, T>
impl<'a, 'b, T> Path<'a, 'b, T>
sourcepub fn params_iter<'p>(&'p self) -> ParamsIter<'p, 'a, 'b, T>ⓘNotable traits for ParamsIter<'p, 'a, 'b, T>impl<'p, 'a, 'b, T> Iterator for ParamsIter<'p, 'a, 'b, T> type Item = (&'a str, &'b str);
pub fn params_iter<'p>(&'p self) -> ParamsIter<'p, 'a, 'b, T>ⓘNotable traits for ParamsIter<'p, 'a, 'b, T>impl<'p, 'a, 'b, T> Iterator for ParamsIter<'p, 'a, 'b, T> type Item = (&'a str, &'b str);
Returns the parameters iterator of the current path.
Trait Implementations
sourceimpl<'a, 'b, T: PartialEq> PartialEq<Path<'a, 'b, T>> for Path<'a, 'b, T>
impl<'a, 'b, T: PartialEq> PartialEq<Path<'a, 'b, T>> for Path<'a, 'b, T>
impl<'a, 'b, T: Eq> Eq for Path<'a, 'b, T>
impl<'a, 'b, T> StructuralEq for Path<'a, 'b, T>
impl<'a, 'b, T> StructuralPartialEq for Path<'a, 'b, T>
Auto Trait Implementations
impl<'a, 'b, T> RefUnwindSafe for Path<'a, 'b, T>where
T: RefUnwindSafe,
impl<'a, 'b, T> Send for Path<'a, 'b, T>where
T: Sync,
impl<'a, 'b, T> Sync for Path<'a, 'b, T>where
T: Sync,
impl<'a, 'b, T> Unpin for Path<'a, 'b, T>
impl<'a, 'b, T> UnwindSafe for Path<'a, 'b, T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more