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
sourceimpl<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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.