pub enum MatcherToken {
Exact(String),
Capture(CaptureVariant),
End,
}
Expand description
Tokens used to determine how to match and capture sections from a URL.
Variants§
Exact(String)
Section-related tokens can be condensed into a match.
Capture(CaptureVariant)
Capture section.
End
End token - if the string hasn’t been consumed entirely, then the parse will fail. This is useful for being able to specify more general matchers for variants that would otherwise match above more specific variants.
Trait Implementations§
Source§impl Clone for MatcherToken
impl Clone for MatcherToken
Source§fn clone(&self) -> MatcherToken
fn clone(&self) -> MatcherToken
Returns a copy of the value. Read more
1.0.0 · 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 MatcherToken
impl Debug for MatcherToken
Source§impl<'a> From<CaptureOrExact<'a>> for MatcherToken
impl<'a> From<CaptureOrExact<'a>> for MatcherToken
Source§fn from(value: CaptureOrExact<'a>) -> Self
fn from(value: CaptureOrExact<'a>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MatcherToken
impl PartialEq for MatcherToken
impl StructuralPartialEq for MatcherToken
Auto Trait Implementations§
impl Freeze for MatcherToken
impl RefUnwindSafe for MatcherToken
impl Send for MatcherToken
impl Sync for MatcherToken
impl Unpin for MatcherToken
impl UnwindSafe for MatcherToken
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