Enum xvc_walker::PatternRelativity
source · pub enum PatternRelativity {
Anywhere,
RelativeTo {
directory: String,
},
}Expand description
Is the pattern matches anywhere or only relative to a directory?
Variants§
Anywhere
Match the path regardless of the directory prefix
RelativeTo
Match the path if it only starts with directory
Trait Implementations§
source§impl Clone for PatternRelativity
impl Clone for PatternRelativity
source§fn clone(&self) -> PatternRelativity
fn clone(&self) -> PatternRelativity
Returns a copy 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 moresource§impl Debug for PatternRelativity
impl Debug for PatternRelativity
source§impl Hash for PatternRelativity
impl Hash for PatternRelativity
source§impl PartialEq<PatternRelativity> for PatternRelativity
impl PartialEq<PatternRelativity> for PatternRelativity
source§fn eq(&self, other: &PatternRelativity) -> bool
fn eq(&self, other: &PatternRelativity) -> bool
impl Eq for PatternRelativity
impl StructuralEq for PatternRelativity
impl StructuralPartialEq for PatternRelativity
Auto Trait Implementations§
impl RefUnwindSafe for PatternRelativity
impl Send for PatternRelativity
impl Sync for PatternRelativity
impl Unpin for PatternRelativity
impl UnwindSafe for PatternRelativity
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.