Enum wax::FilterTarget
source · pub enum FilterTarget {
File,
Tree,
}
Available on crate feature
walk
only.Expand description
Describes how files are read and discarded by FilterTree
.
Variants§
File
Discard the file.
The WalkEntry
for the given file is discarded by the FilterTree
adaptor. Only this
particular file is ignored and if the entry represents a directory, then its tree is still
read from the file system.
Tree
Discard the file and its directory tree, if any.
The WalkEntry
for the given file is discarded by the FilterTree
adaptor. If the
entry represents a directory, then its entire tree is ignored and is not read from the file
system.
When the WalkEntry
represents a normal file (not a directory), then this is the same as
FilterTarget::File
.
Trait Implementations§
source§impl Clone for FilterTarget
impl Clone for FilterTarget
source§fn clone(&self) -> FilterTarget
fn clone(&self) -> FilterTarget
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FilterTarget
impl Debug for FilterTarget
source§impl Hash for FilterTarget
impl Hash for FilterTarget
source§impl PartialEq for FilterTarget
impl PartialEq for FilterTarget
source§fn eq(&self, other: &FilterTarget) -> bool
fn eq(&self, other: &FilterTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FilterTarget
impl Eq for FilterTarget
impl StructuralEq for FilterTarget
impl StructuralPartialEq for FilterTarget
Auto Trait Implementations§
impl RefUnwindSafe for FilterTarget
impl Send for FilterTarget
impl Sync for FilterTarget
impl Unpin for FilterTarget
impl UnwindSafe for FilterTarget
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