pub(crate) enum InnerMatcher<R: RegExp> {
Literal {
literal: String,
},
SingleCapture {
filter: Option<char>,
allow_empty: bool,
},
RegExp {
regexp: Result<R, Error>,
},
}
Variants§
Literal
SingleCapture
A matcher that matches all chars, except the substring specified in
filter
(if it is set).
§Examples
-
- /old/*
- /scripts/*.js
- /:slug
- /blog/:id
- /blog/:id.html
RegExp
Trait Implementations§
Source§impl From<InnerMatcher<EcmaRegexp>> for InnerMatcher
impl From<InnerMatcher<EcmaRegexp>> for InnerMatcher
Source§fn from(inner: InnerMatcher<EcmaRegexp>) -> Self
fn from(inner: InnerMatcher<EcmaRegexp>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<R> Freeze for InnerMatcher<R>where
R: Freeze,
impl<R> RefUnwindSafe for InnerMatcher<R>where
R: RefUnwindSafe,
impl<R> Send for InnerMatcher<R>where
R: Send,
impl<R> Sync for InnerMatcher<R>where
R: Sync,
impl<R> Unpin for InnerMatcher<R>where
R: Unpin,
impl<R> UnwindSafe for InnerMatcher<R>where
R: UnwindSafe,
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