pub enum TreeEntryTarget {
Blob {
hash: ContentHash,
executable: bool,
},
Tree {
hash: ContentHash,
},
Symlink {
hash: ContentHash,
},
Gitlink {
target: ObjectId,
},
}Variants§
Implementations§
Source§impl TreeEntryTarget
impl TreeEntryTarget
pub fn entry_type(&self) -> EntryType
pub fn mode(&self) -> FileMode
pub fn content_hash(&self) -> Option<ContentHash>
pub fn gitlink_target(&self) -> Option<GitObjectId>
Trait Implementations§
Source§impl Clone for TreeEntryTarget
impl Clone for TreeEntryTarget
Source§fn clone(&self) -> TreeEntryTarget
fn clone(&self) -> TreeEntryTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TreeEntryTarget
impl Debug for TreeEntryTarget
impl Eq for TreeEntryTarget
Source§impl PartialEq for TreeEntryTarget
impl PartialEq for TreeEntryTarget
Source§fn eq(&self, other: &TreeEntryTarget) -> bool
fn eq(&self, other: &TreeEntryTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TreeEntryTarget
Auto Trait Implementations§
impl Freeze for TreeEntryTarget
impl RefUnwindSafe for TreeEntryTarget
impl Send for TreeEntryTarget
impl Sync for TreeEntryTarget
impl Unpin for TreeEntryTarget
impl UnsafeUnpin for TreeEntryTarget
impl UnwindSafe for TreeEntryTarget
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