pub enum RouteParserToken<'a> {
Nothing,
Separator,
Exact(&'a str),
Capture(RefCaptureVariant<'a>),
QueryBegin,
QuerySeparator,
Query {
ident: &'a str,
capture_or_exact: CaptureOrExact<'a>,
},
FragmentBegin,
End,
}
Expand description
Tokens generated from parsing a route matcher string. They will be optimized to another token type that is used to match URLs.
Variants§
Nothing
Generated by the empty string ""
.
Separator
Match /
Exact(&'a str)
Match a specific string.
Capture(RefCaptureVariant<'a>)
Match {_}. See RefCaptureVariant
for more.
QueryBegin
Match ?
QuerySeparator
Match &
Query
Match x=y
FragmentBegin
Match #
End
Match !
Trait Implementations§
Source§impl<'a> Clone for RouteParserToken<'a>
impl<'a> Clone for RouteParserToken<'a>
Source§fn clone(&self) -> RouteParserToken<'a>
fn clone(&self) -> RouteParserToken<'a>
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<'a> Debug for RouteParserToken<'a>
impl<'a> Debug for RouteParserToken<'a>
Source§impl<'a> PartialEq for RouteParserToken<'a>
impl<'a> PartialEq for RouteParserToken<'a>
impl<'a> Copy for RouteParserToken<'a>
impl<'a> StructuralPartialEq for RouteParserToken<'a>
Auto Trait Implementations§
impl<'a> Freeze for RouteParserToken<'a>
impl<'a> RefUnwindSafe for RouteParserToken<'a>
impl<'a> Send for RouteParserToken<'a>
impl<'a> Sync for RouteParserToken<'a>
impl<'a> Unpin for RouteParserToken<'a>
impl<'a> UnwindSafe for RouteParserToken<'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