pub struct TreeEntryRef<'a> {
pub mode: u32,
pub name: &'a [u8],
pub oid: ObjectId,
}Expand description
A single tree entry borrowing name bytes from the tree object payload.
Fields§
§mode: u32Unix file mode (e.g. 0o100644 for a regular file, 0o040000 for a tree).
name: &'a [u8]Entry name (file or directory name only, no path separators).
oid: ObjectIdThe object ID of the blob or sub-tree.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for TreeEntryRef<'a>
impl<'a> Clone for TreeEntryRef<'a>
impl<'a> Copy for TreeEntryRef<'a>
Source§impl<'a> Debug for TreeEntryRef<'a>
impl<'a> Debug for TreeEntryRef<'a>
impl<'a> Eq for TreeEntryRef<'a>
Source§impl<'a> PartialEq for TreeEntryRef<'a>
impl<'a> PartialEq for TreeEntryRef<'a>
impl<'a> StructuralPartialEq for TreeEntryRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for TreeEntryRef<'a>
impl<'a> RefUnwindSafe for TreeEntryRef<'a>
impl<'a> Send for TreeEntryRef<'a>
impl<'a> Sync for TreeEntryRef<'a>
impl<'a> Unpin for TreeEntryRef<'a>
impl<'a> UnsafeUnpin for TreeEntryRef<'a>
impl<'a> UnwindSafe for TreeEntryRef<'a>
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