pub enum EntryKind {
File,
Dir,
Symlink,
Other,
}Expand description
The kind of a traversed entry.
Kept generic so parex can represent non-filesystem sources cleanly.
Filesystem sources map DirEntry file types to these variants.
Variants§
File
A regular file.
Dir
A directory.
Symlink
A symbolic link.
Other
Anything else (device files, pipes, sockets, etc.).
Trait Implementations§
impl Eq for EntryKind
impl StructuralPartialEq for EntryKind
Auto Trait Implementations§
impl Freeze for EntryKind
impl RefUnwindSafe for EntryKind
impl Send for EntryKind
impl Sync for EntryKind
impl Unpin for EntryKind
impl UnsafeUnpin for EntryKind
impl UnwindSafe for EntryKind
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