pub struct TreeEntry {
pub mode: u32,
pub name: String,
pub hash: GitHash,
}Fields§
§mode: u32POSIX file mode (e.g. 0o100644 for regular file, 0o40000 for dir).
name: String§hash: GitHashImplementations§
Source§impl TreeEntry
impl TreeEntry
pub fn is_directory(&self) -> bool
pub fn is_executable(&self) -> bool
pub fn is_symlink(&self) -> bool
Trait Implementations§
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