pub enum DirectoryEntry {
Directory(DirectoryInfo),
File(FileInfo),
}
Expand description
A DirectoryEntry
represents all possible entry types
which can be contained within the file system.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DirectoryEntry
impl Clone for DirectoryEntry
Source§fn clone(&self) -> DirectoryEntry
fn clone(&self) -> DirectoryEntry
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 DirectoryEntry
impl Debug for DirectoryEntry
Source§impl From<DirectoryInfo> for DirectoryEntry
impl From<DirectoryInfo> for DirectoryEntry
Source§fn from(value: DirectoryInfo) -> Self
fn from(value: DirectoryInfo) -> Self
Converts to this type from the input type.
Source§impl From<FileInfo> for DirectoryEntry
impl From<FileInfo> for DirectoryEntry
Source§impl Ord for DirectoryEntry
impl Ord for DirectoryEntry
Source§fn cmp(&self, other: &DirectoryEntry) -> Ordering
fn cmp(&self, other: &DirectoryEntry) -> Ordering
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 PartialEq for DirectoryEntry
impl PartialEq for DirectoryEntry
Source§impl PartialOrd for DirectoryEntry
impl PartialOrd for DirectoryEntry
Source§impl TryFrom<DirEntry> for DirectoryEntry
impl TryFrom<DirEntry> for DirectoryEntry
impl Eq for DirectoryEntry
impl StructuralPartialEq for DirectoryEntry
Auto Trait Implementations§
impl Freeze for DirectoryEntry
impl RefUnwindSafe for DirectoryEntry
impl Send for DirectoryEntry
impl Sync for DirectoryEntry
impl Unpin for DirectoryEntry
impl UnwindSafe for DirectoryEntry
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