pub struct IgnoreFilter { /* private fields */ }Expand description
Filter for determining which files should be ignored during scanning.
Implementations§
Source§impl IgnoreFilter
impl IgnoreFilter
Sourcepub fn from_config(root: &Path, config: &IgnoreConfig) -> Self
pub fn from_config(root: &Path, config: &IgnoreConfig) -> Self
Create IgnoreFilter from config.
Sourcepub fn with_config(self, config: &IgnoreConfig) -> Self
pub fn with_config(self, config: &IgnoreConfig) -> Self
Apply config settings to existing filter.
Sourcepub fn with_include_tests(self, include: bool) -> Self
pub fn with_include_tests(self, include: bool) -> Self
Set whether to include test directories.
Sourcepub fn with_include_node_modules(self, include: bool) -> Self
pub fn with_include_node_modules(self, include: bool) -> Self
Set whether to include node_modules directories.
Sourcepub fn with_include_vendor(self, include: bool) -> Self
pub fn with_include_vendor(self, include: bool) -> Self
Set whether to include vendor directories.
Sourcepub fn is_ignored(&self, path: &Path) -> bool
pub fn is_ignored(&self, path: &Path) -> bool
Check if a path should be ignored.
Trait Implementations§
Source§impl Default for IgnoreFilter
impl Default for IgnoreFilter
Source§fn default() -> IgnoreFilter
fn default() -> IgnoreFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IgnoreFilter
impl RefUnwindSafe for IgnoreFilter
impl Send for IgnoreFilter
impl Sync for IgnoreFilter
impl Unpin for IgnoreFilter
impl UnwindSafe for IgnoreFilter
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