pub struct Extension<S>(/* private fields */);Expand description
Emits directories with the provided extension.
Note that this does not filter directories and only applies to the emission of paths
from the Iterator, in other words, directories that do not have the provided
extension will be visited, but not emitted.
Implementations§
Trait Implementations§
Source§impl<S> Filter for Extension<S>
impl<S> Filter for Extension<S>
Source§fn filter(&self, _: &Path, _: &Path) -> bool
fn filter(&self, _: &Path, _: &Path) -> bool
Checks whether
path_to_visit should be visited or not. The base_path is
the initial directory provided to the visitor. Read moreSource§fn should_emit(&self, dir: &Path) -> bool
fn should_emit(&self, dir: &Path) -> bool
Checks whether
dir should be emitted by the iterator.Source§fn and<B>(self, other: B) -> And<Self, B>
fn and<B>(self, other: B) -> And<Self, B>
Creates a filter that only accepts both this and the
other condition.Source§impl<S: Ord> Ord for Extension<S>
impl<S: Ord> Ord for Extension<S>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<S: PartialOrd> PartialOrd for Extension<S>
impl<S: PartialOrd> PartialOrd for Extension<S>
impl<S: Eq> Eq for Extension<S>
impl<S> StructuralPartialEq for Extension<S>
Auto Trait Implementations§
impl<S> Freeze for Extension<S>where
S: Freeze,
impl<S> RefUnwindSafe for Extension<S>where
S: RefUnwindSafe,
impl<S> Send for Extension<S>where
S: Send,
impl<S> Sync for Extension<S>where
S: Sync,
impl<S> Unpin for Extension<S>where
S: Unpin,
impl<S> UnwindSafe for Extension<S>where
S: UnwindSafe,
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