pub struct IgnoreConfig { /* private fields */ }Expand description
Centralized ignore file configuration.
Threaded through KernelConfig → ExecContext → tools.
Runtime-mutable via the ignore builtin.
Implementations§
Source§impl IgnoreConfig
impl IgnoreConfig
pub fn scope(&self) -> IgnoreScope
Sourcepub fn auto_gitignore(&self) -> bool
pub fn auto_gitignore(&self) -> bool
Whether the FileWalker should auto-load nested .gitignore files.
pub fn use_defaults(&self) -> bool
pub fn files(&self) -> &[String]
pub fn set_scope(&mut self, scope: IgnoreScope)
pub fn set_defaults(&mut self, on: bool)
pub fn set_auto_gitignore(&mut self, on: bool)
pub fn add_file(&mut self, name: &str)
pub fn remove_file(&mut self, name: &str)
pub fn clear(&mut self)
Sourcepub async fn build_filter<F: WalkerFs>(
&self,
root: &Path,
fs: &F,
) -> Option<IgnoreFilter>
pub async fn build_filter<F: WalkerFs>( &self, root: &Path, fs: &F, ) -> Option<IgnoreFilter>
Build an IgnoreFilter from the configured file list and defaults.
Loads each ignore file relative to root via the given WalkerFs.
Returns None if no filtering is configured.
Trait Implementations§
Source§impl Clone for IgnoreConfig
impl Clone for IgnoreConfig
Source§fn clone(&self) -> IgnoreConfig
fn clone(&self) -> IgnoreConfig
Returns a duplicate 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 Freeze for IgnoreConfig
impl RefUnwindSafe for IgnoreConfig
impl Send for IgnoreConfig
impl Sync for IgnoreConfig
impl Unpin for IgnoreConfig
impl UnsafeUnpin for IgnoreConfig
impl UnwindSafe for IgnoreConfig
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