Struct xvc_walker::IgnoreRules
source · pub struct IgnoreRules { /* private fields */ }Expand description
Complete set of ignore rules for a directory and its child directories.
Implementations§
source§impl IgnoreRules
impl IgnoreRules
sourcepub fn empty(dir: &Path) -> Self
pub fn empty(dir: &Path) -> Self
An empty set of ignore rules that neither ignores nor whitelists any path.
sourcepub fn try_from_patterns(root: &Path, patterns: &str) -> Result<Self>
pub fn try_from_patterns(root: &Path, patterns: &str) -> Result<Self>
Compiles patterns as Source::Global and initializes the elements.
Trait Implementations§
source§impl Clone for IgnoreRules
impl Clone for IgnoreRules
source§fn clone(&self) -> IgnoreRules
fn clone(&self) -> IgnoreRules
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 more