pub enum NodeKind {
File {
size: u64,
category: FileCategory,
modified: Option<SystemTime>,
},
Directory {
children: Vec<NodeId>,
},
}Expand description
Whether a node is a file or directory.
Variants§
File
Fields
§
category: FileCategoryFile category (derived from extension)
§
modified: Option<SystemTime>Last modified time
Directory
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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