pub struct NoFilter;
Expand description
A Filter
that allows all paths.
let filter = NoFilter::make_filter();
assert!(filter.allows(Path::new("foo.txt")));
assert!(filter.allows(Path::new("foo/bar.txt")));
assert!(filter.allows(Path::new("foo/bar/baz.txt")));
assert!(filter.allows(Path::new("foo/bar/baz")));
assert!(filter.allows(Path::new("foo/bar/baz/")));
assert!(filter.allows(Path::new("foo/bar/baz/.")));
assert!(filter.allows(Path::new("foo/bar/baz/..")));
assert!(filter.allows(Path::new("foo/bar/baz/../..")));
assert!(filter.allows(Path::new("foo/bar/baz/../../..")));
assert!(filter.allows(Path::new("foo/bar/baz/../../../..")));
assert!(filter.allows(Path::new("foo/bar/baz/../../../../..")));
assert!(filter.allows(Path::new("foo/bar/baz/../../../../../..")));
Trait Implementations§
impl Copy for NoFilter
impl Eq for NoFilter
impl StructuralPartialEq for NoFilter
Auto Trait Implementations§
impl Freeze for NoFilter
impl RefUnwindSafe for NoFilter
impl Send for NoFilter
impl Sync for NoFilter
impl Unpin for NoFilter
impl UnwindSafe for NoFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.