pub struct FileFilter { /* private fields */ }Implementations§
Source§impl FileFilter
impl FileFilter
Sourcepub fn new(use_defaults: bool, custom_patterns: &[String]) -> Result<Self>
pub fn new(use_defaults: bool, custom_patterns: &[String]) -> Result<Self>
create new file filter with optional custom patterns
Sourcepub fn should_exclude(&self, path: &Path) -> bool
pub fn should_exclude(&self, path: &Path) -> bool
check if a path should be excluded from archiving
Sourcepub fn should_exclude_relative(&self, relative_path: &Path) -> bool
pub fn should_exclude_relative(&self, relative_path: &Path) -> bool
check if a relative path should be excluded from archiving
Sourcepub fn should_exclude_path(&self, root: &Path, path: &Path) -> bool
pub fn should_exclude_path(&self, root: &Path, path: &Path) -> bool
check if a path should be excluded, based on its relative path to a root
Sourcepub fn should_include(&self, path: &Path) -> bool
pub fn should_include(&self, path: &Path) -> bool
check if a path should be included in archiving (inverse of should_exclude)
Sourcepub fn should_include_relative(&self, relative_path: &Path) -> bool
pub fn should_include_relative(&self, relative_path: &Path) -> bool
check if a relative path should be included in archiving
Sourcepub fn should_include_path(&self, root: &Path, path: &Path) -> bool
pub fn should_include_path(&self, root: &Path, path: &Path) -> bool
check if a path should be included, based on its relative path to a root
Auto 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