pub struct IgnoreFilter { /* private fields */ }Implementations§
Source§impl IgnoreFilter
impl IgnoreFilter
pub fn new(project_root: &Path) -> Result<Self>
Sourcepub fn should_include(&self, path: &Path) -> bool
pub fn should_include(&self, path: &Path) -> bool
Check if a file should be included (not ignored)
Sourcepub fn filter_fn(&self) -> impl Fn(&Path) -> bool + '_
pub fn filter_fn(&self) -> impl Fn(&Path) -> bool + '_
Get a closure that can be used for filtering
Sourcepub fn list_patterns(&self) -> Vec<String>
pub fn list_patterns(&self) -> Vec<String>
List all patterns that would be applied
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