Enum OptimizedPatternSegment
pub enum OptimizedPatternSegment {
Exact(String),
SingleWildcard,
MultiWildcard,
}Expand description
Optimized pattern segment for efficient matching
Variants§
Exact(String)
Exact string match
SingleWildcard
Single-level wildcard (*)
MultiWildcard
Multi-level wildcard (**)
Trait Implementations§
§impl Clone for OptimizedPatternSegment
impl Clone for OptimizedPatternSegment
§fn clone(&self) -> OptimizedPatternSegment
fn clone(&self) -> OptimizedPatternSegment
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 more§impl Debug for OptimizedPatternSegment
impl Debug for OptimizedPatternSegment
§impl Hash for OptimizedPatternSegment
impl Hash for OptimizedPatternSegment
§impl PartialEq for OptimizedPatternSegment
impl PartialEq for OptimizedPatternSegment
impl Eq for OptimizedPatternSegment
impl StructuralPartialEq for OptimizedPatternSegment
Auto Trait Implementations§
impl Freeze for OptimizedPatternSegment
impl RefUnwindSafe for OptimizedPatternSegment
impl Send for OptimizedPatternSegment
impl Sync for OptimizedPatternSegment
impl Unpin for OptimizedPatternSegment
impl UnwindSafe for OptimizedPatternSegment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.