pub enum FileFilter {
All,
WindowsExecutables,
WindowsDlls,
WindowsExecutablesAndDlls,
Extensions(Vec<String>),
Custom(fn(&Path) -> bool),
}Expand description
File type filters for directory scanning
Variants§
All
All executable files (default behavior)
WindowsExecutables
Only Windows executables (.exe files)
WindowsDlls
Only Windows dynamic libraries (.dll files)
WindowsExecutablesAndDlls
Both .exe and .dll files
Extensions(Vec<String>)
Custom file extension filter
Custom(fn(&Path) -> bool)
Custom predicate function
Trait Implementations§
Source§impl Clone for FileFilter
impl Clone for FileFilter
Source§fn clone(&self) -> FileFilter
fn clone(&self) -> FileFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FileFilter
impl RefUnwindSafe for FileFilter
impl Send for FileFilter
impl Sync for FileFilter
impl Unpin for FileFilter
impl UnsafeUnpin for FileFilter
impl UnwindSafe for FileFilter
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