#[repr(u8)]pub enum ObjType {
Commit = 1,
Tree = 2,
Blob = 3,
Tag = 4,
OfsDelta = 6,
RefDelta = 7,
}Expand description
Object type, in git’s own pack entry encoding.
This is not crate::object::GitObjectKind and must not be merged with it:
that enum is the four loose object types, which is all a canonical
"<type> <size>\0…" header can express. A packed object also comes in the
two delta forms. Owned by the git-storage-trait contract; re-exported here
so crate::index_layout::ObjType stays a valid path.
The type of a stored object, as it appears in the pack — so it may be a
delta (OfsDelta/RefDelta) rather than a resolved type.
Variants§
Implementations§
Trait Implementations§
impl Copy for ObjType
impl Eq for ObjType
impl StructuralPartialEq for ObjType
Auto Trait Implementations§
impl Freeze for ObjType
impl RefUnwindSafe for ObjType
impl Send for ObjType
impl Sync for ObjType
impl Unpin for ObjType
impl UnsafeUnpin for ObjType
impl UnwindSafe for ObjType
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.