pub struct DirectoryFilter { /* private fields */ }
Expand description
Directory-level filtering for efficient tree traversal
Implementations§
Source§impl DirectoryFilter
impl DirectoryFilter
pub fn new() -> Self
pub fn with_additional_cold_dirs(self, dirs: Vec<String>) -> Self
Sourcepub fn should_skip_directory(&mut self, path: &Path) -> bool
pub fn should_skip_directory(&mut self, path: &Path) -> bool
Check if a directory should be skipped entirely
pub fn stats(&self) -> &DirectoryFilterStats
Trait Implementations§
Source§impl Debug for DirectoryFilter
impl Debug for DirectoryFilter
Auto Trait Implementations§
impl Freeze for DirectoryFilter
impl RefUnwindSafe for DirectoryFilter
impl Send for DirectoryFilter
impl Sync for DirectoryFilter
impl Unpin for DirectoryFilter
impl UnwindSafe for DirectoryFilter
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more