pub struct IgnoreConfig {
pub excluded_dirs: Vec<String>,
pub included_dirs: Vec<String>,
}Expand description
Configuration for file ignore/include behavior
Fields§
§excluded_dirs: Vec<String>Directories to exclude (checked against path components)
included_dirs: Vec<String>Directories to explicitly include (overrides default exclusions)
Implementations§
Source§impl IgnoreConfig
impl IgnoreConfig
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create with default exclusions (.git)
Sourcepub fn include(self, dir: impl Into<String>) -> Self
pub fn include(self, dir: impl Into<String>) -> Self
Add a directory to include (overrides default exclusion)
Sourcepub fn should_ignore(&self, path: &Path) -> bool
pub fn should_ignore(&self, path: &Path) -> bool
Check if a path should be ignored based on this config
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IgnoreConfig
impl Debug for IgnoreConfig
Source§impl Default for IgnoreConfig
impl Default for IgnoreConfig
Source§fn default() -> IgnoreConfig
fn default() -> IgnoreConfig
Returns the “default value” for a type. Read more
Auto 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