Trait FileSystemFilter

Source
pub trait FileSystemFilter {
    // Required method
    fn should_include(&self, path: &Path) -> bool;
}
Expand description

Filters over filesystems.

Required Methods§

Source

fn should_include(&self, path: &Path) -> bool

Returns true if the path should be included in the filesystem.

§Arguments

path: THe path to the file.

Implementors§

Source§

impl<F: Fn(&Path) -> bool> FileSystemFilter for F