pub enum FileNodeData {
Directory {
git_log: Option<GitLog>,
entries: Vec<DirectoryEntry>,
},
File {
data: Option<Vec<u8>>,
},
}
Expand description
A type for representing data about a node in a file tree.
Each node is either a directory a file. Directories form the internal nodes of the file tree. They consist of one or more named entries, each of which is another node. Files form the leaves of the file tree, and do not contain any further nodes.
Variants§
Trait Implementations§
Source§impl Clone for FileNodeData
impl Clone for FileNodeData
Source§fn clone(&self) -> FileNodeData
fn clone(&self) -> FileNodeData
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 DeBin for FileNodeData
impl DeBin for FileNodeData
Source§impl Debug for FileNodeData
impl Debug for FileNodeData
Auto Trait Implementations§
impl Freeze for FileNodeData
impl RefUnwindSafe for FileNodeData
impl Send for FileNodeData
impl Sync for FileNodeData
impl Unpin for FileNodeData
impl UnwindSafe for FileNodeData
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