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
This method tests for
self and other values to be equal, and is used
by ==.