pub struct IgnorerSet { /* private fields */ }Expand description
A set of ignorers
Implementations§
Source§impl IgnorerSet
impl IgnorerSet
pub fn add(&mut self, ignorer: Box<dyn Ignorer + Send>)
Sourcepub fn add_override(&mut self, pattern: &str, root: &Path) -> Result<()>
pub fn add_override(&mut self, pattern: &str, root: &Path) -> Result<()>
Add an override pattern that will force-include matching paths,
overriding any ignore rules (including .gitignore).
This is used for negative patterns like !myfile.txt in the ignore config.
pub fn excludes_all_pathbufs(&mut self, paths: &[PathBuf]) -> Result<bool>
Trait Implementations§
Source§impl Default for IgnorerSet
impl Default for IgnorerSet
Source§fn default() -> IgnorerSet
fn default() -> IgnorerSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IgnorerSet
impl !RefUnwindSafe for IgnorerSet
impl Send for IgnorerSet
impl !Sync for IgnorerSet
impl Unpin for IgnorerSet
impl !UnwindSafe for IgnorerSet
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