pub struct PathFilter { /* private fields */ }Expand description
Path filter.
Implementations§
Source§impl PathFilter
impl PathFilter
Sourcepub fn add_signature(&mut self, signature: PathFilterSignature)
pub fn add_signature(&mut self, signature: PathFilterSignature)
Adds a signature.
Sourcepub fn build(&mut self) -> Result<(), ErrorTrace>
pub fn build(&mut self) -> Result<(), ErrorTrace>
Builds the scan trees.
Sourcepub fn is_match(
&self,
path: &Path,
data_fork_name: Option<&PathComponent>,
) -> Result<bool, ErrorTrace>
pub fn is_match( &self, path: &Path, data_fork_name: Option<&PathComponent>, ) -> Result<bool, ErrorTrace>
Determines whether the given path matches the filter.
Sourcepub fn set_case_folding(&mut self, case_folding_mappings: PathCharacterMappings)
pub fn set_case_folding(&mut self, case_folding_mappings: PathCharacterMappings)
Sets the case folding mappings.
Auto Trait Implementations§
impl Freeze for PathFilter
impl RefUnwindSafe for PathFilter
impl Send for PathFilter
impl Sync for PathFilter
impl Unpin for PathFilter
impl UnsafeUnpin for PathFilter
impl UnwindSafe for PathFilter
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