pub enum TrieSubMatch<'a, 'b> {
Wildcard(&'a [u8]),
Regexp(&'a [u8], &'b Regex),
}Expand description
One step of a trie traversal where a non-literal segment matched.
Wildcard carries the actual segment bytes consumed by a * wildcard
(so a router that wants to capture them can splice them into a rewrite
template). Regexp carries both the matched bytes and the regex itself
so the caller can re-run Regex::captures to pull explicit groups.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for TrieSubMatch<'a, 'b>
impl<'a, 'b> RefUnwindSafe for TrieSubMatch<'a, 'b>
impl<'a, 'b> Send for TrieSubMatch<'a, 'b>
impl<'a, 'b> Sync for TrieSubMatch<'a, 'b>
impl<'a, 'b> Unpin for TrieSubMatch<'a, 'b>
impl<'a, 'b> UnsafeUnpin for TrieSubMatch<'a, 'b>
impl<'a, 'b> UnwindSafe for TrieSubMatch<'a, 'b>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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