pub struct Recognizer {
pub glob_regex: Regex,
pub param_chunks: Vec<ParamChunk>,
pub handler: Box<dyn Handler>,
}Fields§
§glob_regex: Regex§param_chunks: Vec<ParamChunk>§handler: Box<dyn Handler>Implementations§
Source§impl Recognizer
impl Recognizer
pub fn new<G, N, P>( glob: G, handler: Box<dyn Handler>, types: Option<&Store<N, P>>, ) -> RecognizerResult
pub fn parse_glob<G, N, P>( glob: G, types: &Store<N, P>, ) -> RecognizerResult<(Regex, Vec<ParamChunk>)>
Trait Implementations§
Source§impl Recognize for Recognizer
impl Recognize for Recognizer
Auto Trait Implementations§
impl !Freeze for Recognizer
impl !RefUnwindSafe for Recognizer
impl Send for Recognizer
impl Sync for Recognizer
impl Unpin for Recognizer
impl !UnwindSafe for Recognizer
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