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 for PatternRelativity
impl PartialEq for PatternRelativity
source§fn eq(&self, other: &PatternRelativity) -> bool
fn eq(&self, other: &PatternRelativity) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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<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