pub trait Filter: Sized {
// Required methods
fn new(pile_config: &PileConfig) -> Self;
fn keep(&self, prefix: &SystemPath, path: &RelativePath) -> bool;
}
Expand description
The Filter
trait provides a common interface for all filters.
Required Methods§
sourcefn new(pile_config: &PileConfig) -> Self
fn new(pile_config: &PileConfig) -> Self
sourcefn keep(&self, prefix: &SystemPath, path: &RelativePath) -> bool
fn keep(&self, prefix: &SystemPath, path: &RelativePath) -> bool
Whether or not the file should be kept (backed up).
Object Safety§
This trait is not object safe.