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
sourceimpl 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
sourceimpl Clone for IgnoreRules
impl Clone for IgnoreRules
sourcefn clone(&self) -> IgnoreRules
fn clone(&self) -> IgnoreRules
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 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
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