pub struct CwdMatcher { /* private fields */ }Expand description
A compiled matcher for one template.
Implementations§
Source§impl CwdMatcher
impl CwdMatcher
Sourcepub fn build(segments: &[Segment]) -> Result<Self, TemplateError>
pub fn build(segments: &[Segment]) -> Result<Self, TemplateError>
Compiles a matcher for the given segments.
§Errors
Returns TemplateError::Regex if the generated pattern is rejected.
Trait Implementations§
Source§impl Clone for CwdMatcher
impl Clone for CwdMatcher
Source§fn clone(&self) -> CwdMatcher
fn clone(&self) -> CwdMatcher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CwdMatcher
impl RefUnwindSafe for CwdMatcher
impl Send for CwdMatcher
impl Sync for CwdMatcher
impl Unpin for CwdMatcher
impl UnsafeUnpin for CwdMatcher
impl UnwindSafe for CwdMatcher
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