pub struct RoutePattern(/* private fields */);Expand description
Represents a parsed and structured route pattern.
This struct wraps a vector of RouteSegments, which are the individual components
of a URL path. It is used internally by the RouteMatcher to perform efficient
route matching against incoming requests.
Implementations§
Source§impl RoutePattern
This impl block contains no public items.Manages route patterns, including parsing and matching.
impl RoutePattern
Manages route patterns, including parsing and matching.
This struct is responsible for defining and validating route structures, supporting static, dynamic, and regex-based path matching.
Source§impl RoutePattern
impl RoutePattern
pub fn get_0(&self) -> &Vec<RouteSegment>
Trait Implementations§
Source§impl Clone for RoutePattern
impl Clone for RoutePattern
Source§fn clone(&self) -> RoutePattern
fn clone(&self) -> RoutePattern
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RoutePattern
impl Debug for RoutePattern
Source§impl Display for RoutePattern
impl Display for RoutePattern
Source§impl Eq for RoutePattern
Implements the Eq trait for RoutePattern.
impl Eq for RoutePattern
Implements the Eq trait for RoutePattern.
This indicates that RoutePattern has a total equality relation.
Source§impl Hash for RoutePattern
Implements the Hash trait for RoutePattern.
impl Hash for RoutePattern
Implements the Hash trait for RoutePattern.
This allows RoutePattern to be used as a key in hash-based collections.
Source§impl Ord for RoutePattern
Implements the Ord trait for RoutePattern.
impl Ord for RoutePattern
Implements the Ord trait for RoutePattern.
This allows for total ordering of RoutePattern instances.
Source§fn cmp(&self, other: &RoutePattern) -> Ordering
fn cmp(&self, other: &RoutePattern) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RoutePattern
Implements the PartialEq trait for RoutePattern.
impl PartialEq for RoutePattern
Implements the PartialEq trait for RoutePattern.
This allows for comparing two RoutePattern instances for equality.
Source§fn eq(&self, other: &RoutePattern) -> bool
fn eq(&self, other: &RoutePattern) -> bool
Source§impl PartialOrd for RoutePattern
Implements the PartialOrd trait for RoutePattern.
impl PartialOrd for RoutePattern
Implements the PartialOrd trait for RoutePattern.
This allows for partial ordering of RoutePattern instances.
Auto Trait Implementations§
impl Forget for RoutePattern
impl Freeze for RoutePattern
impl Move for RoutePattern
impl RefUnwindSafe for RoutePattern
impl Send for RoutePattern
impl Sync for RoutePattern
impl Unpin for RoutePattern
impl UnsafeUnpin for RoutePattern
impl UnwindSafe for RoutePattern
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.