Enum PatternSegment
pub enum PatternSegment {
Exact(String),
SingleWildcard,
MultiWildcard,
}Expand description
Pattern segment for efficient matching
Variants§
Exact(String)
Exact string match segment
SingleWildcard
Single-level wildcard segment (*)
MultiWildcard
Multi-level wildcard segment (**)
Trait Implementations§
§impl Clone for PatternSegment
impl Clone for PatternSegment
§fn clone(&self) -> PatternSegment
fn clone(&self) -> PatternSegment
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PatternSegment
impl RefUnwindSafe for PatternSegment
impl Send for PatternSegment
impl Sync for PatternSegment
impl Unpin for PatternSegment
impl UnwindSafe for PatternSegment
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