Trait FileFilter

Source
pub trait FileFilter {
    // Required method
    fn is_match(&self, file: &Path) -> bool;
}
Expand description

A predicate property that determines whether a file satisfies a certain condition

Required Methods§

Source

fn is_match(&self, file: &Path) -> bool

The predicate function that should return if the given file should be included.

Implementors§

Source§

impl FileFilter for TestFileFilter

Source§

impl<F> FileFilter for F
where F: Fn(&Path) -> bool,