pub struct EntryTypes {
pub files: bool,
pub dirs: bool,
}Expand description
Types of entries to include in walk results.
Fields§
§files: boolInclude regular files.
dirs: boolInclude directories.
Implementations§
Source§impl EntryTypes
impl EntryTypes
Sourcepub fn files_only() -> EntryTypes
pub fn files_only() -> EntryTypes
Include only files.
Sourcepub fn dirs_only() -> EntryTypes
pub fn dirs_only() -> EntryTypes
Include only directories.
Sourcepub fn all() -> EntryTypes
pub fn all() -> EntryTypes
Include both files and directories.
Trait Implementations§
Source§impl Clone for EntryTypes
impl Clone for EntryTypes
Source§fn clone(&self) -> EntryTypes
fn clone(&self) -> EntryTypes
Returns a duplicate 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 EntryTypes
impl Debug for EntryTypes
Source§impl Default for EntryTypes
impl Default for EntryTypes
Source§fn default() -> EntryTypes
fn default() -> EntryTypes
Returns the “default value” for a type. Read more
impl Copy for EntryTypes
Auto Trait Implementations§
impl Freeze for EntryTypes
impl RefUnwindSafe for EntryTypes
impl Send for EntryTypes
impl Sync for EntryTypes
impl Unpin for EntryTypes
impl UnwindSafe for EntryTypes
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