Struct xvc_walker::Pattern
source · Expand description
Pattern is generic and could be an instance of String, Glob, Regex or any other object.
The type is evolved by compiling.
A pattern can start its life as Pattern<String> and can be compiled into Pattern<Glob> or
Pattern<Regex>.
Implementations§
Trait Implementations§
source§impl<T: PartialEq> PartialEq<Pattern<T>> for Pattern<T>where
T: PartialEq + Hash,
impl<T: PartialEq> PartialEq<Pattern<T>> for Pattern<T>where
T: PartialEq + Hash,
impl<T: Eq> Eq for Pattern<T>where
T: PartialEq + Hash,
impl<T> StructuralEq for Pattern<T>where
T: PartialEq + Hash,
impl<T> StructuralPartialEq for Pattern<T>where
T: PartialEq + Hash,
Auto Trait Implementations§
impl<T> RefUnwindSafe for Pattern<T>where
T: RefUnwindSafe,
impl<T> Send for Pattern<T>where
T: Send,
impl<T> Sync for Pattern<T>where
T: Sync,
impl<T> Unpin for Pattern<T>where
T: Unpin,
impl<T> UnwindSafe for Pattern<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.