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
Fields
directory: StringThe directory that the pattern must have as prefix to be considered a match
Match the path if it only starts with directory
Trait Implementations
sourceimpl Clone for PatternRelativity
impl Clone for PatternRelativity
sourcefn clone(&self) -> PatternRelativity
fn clone(&self) -> PatternRelativity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PatternRelativity
impl Debug for PatternRelativity
sourceimpl Hash for PatternRelativity
impl Hash for PatternRelativity
sourceimpl PartialEq<PatternRelativity> for PatternRelativity
impl PartialEq<PatternRelativity> for PatternRelativity
sourcefn 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
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.