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 moreAuto Trait Implementations§
impl RefUnwindSafe for IgnoreRules
impl Send for IgnoreRules
impl Sync for IgnoreRules
impl Unpin for IgnoreRules
impl UnwindSafe for IgnoreRules
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