#[repr(C)]pub struct RouteMatch {
pub pattern: AzString,
pub params: StringPairVec,
}Expand description
Result of matching a URL against a route pattern.
Stores the matched pattern and any extracted parameters.
Available to layout callbacks via LayoutCallbackInfo::get_route_param().
Fields§
§pattern: AzStringThe matched route pattern (e.g. "/user/:id")
params: StringPairVecExtracted parameters (e.g. [("id", "42")])
Implementations§
Trait Implementations§
Source§impl Clone for RouteMatch
impl Clone for RouteMatch
Source§fn clone(&self) -> RouteMatch
fn clone(&self) -> RouteMatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RouteMatch
impl Debug for RouteMatch
Source§impl Hash for RouteMatch
impl Hash for RouteMatch
Source§impl Ord for RouteMatch
impl Ord for RouteMatch
Source§fn cmp(&self, other: &RouteMatch) -> Ordering
fn cmp(&self, other: &RouteMatch) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RouteMatch
impl PartialEq for RouteMatch
Source§fn eq(&self, other: &RouteMatch) -> bool
fn eq(&self, other: &RouteMatch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RouteMatch
impl PartialOrd for RouteMatch
impl Eq for RouteMatch
impl StructuralPartialEq for RouteMatch
Auto Trait Implementations§
impl Freeze for RouteMatch
impl RefUnwindSafe for RouteMatch
impl Send for RouteMatch
impl Sync for RouteMatch
impl Unpin for RouteMatch
impl UnsafeUnpin for RouteMatch
impl UnwindSafe for RouteMatch
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