pub struct IgnoreFilter { /* private fields */ }Implementations§
Source§impl IgnoreFilter
impl IgnoreFilter
pub fn new(root: &Path) -> Self
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
pub fn with_include_tests(self, include: bool) -> Self
pub fn with_include_node_modules(self, include: bool) -> Self
pub fn with_include_vendor(self, include: bool) -> Self
pub fn is_ignored(&self, path: &Path) -> bool
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