pub struct Finder<S>where
S: BytesStorage,{ /* private fields */ }Expand description
A struct to find files in a directory.
Implementations§
Source§impl<S> Finder<S>
The Finder struct is used to find files in a directory.
impl<S> Finder<S>
The Finder struct is used to find files in a directory.
Sourcepub fn init(
root: impl AsRef<OsStr>,
pattern: impl AsRef<str>,
) -> FinderBuilder<S>
pub fn init( root: impl AsRef<OsStr>, pattern: impl AsRef<str>, ) -> FinderBuilder<S>
Create a new Finder instance.
Sourcepub fn with_type_filter(self, filter: DirEntryFilter<S>) -> Self
pub fn with_type_filter(self, filter: DirEntryFilter<S>) -> Self
Set a filter function to filter out entries.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Finder<S>
impl<S> RefUnwindSafe for Finder<S>
impl<S> Send for Finder<S>
impl<S> Sync for Finder<S>
impl<S> Unpin for Finder<S>
impl<S> UnwindSafe for Finder<S>
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