pub enum TreeEntry {
File {
name: String,
content: Vec<u8>,
executable: bool,
},
Directory {
name: String,
children: Vec<TreeEntry>,
},
}Expand description
In-memory representation of a filesystem entry for tree hashing.
Symlinks are not supported — implementations MUST reject them at walk time.
Variants§
Auto Trait Implementations§
impl Freeze for TreeEntry
impl RefUnwindSafe for TreeEntry
impl Send for TreeEntry
impl Sync for TreeEntry
impl Unpin for TreeEntry
impl UnsafeUnpin for TreeEntry
impl UnwindSafe for TreeEntry
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