pub enum Header {
Loose {
kind: Kind,
size: u64,
},
Packed(Outcome),
}
Expand description
An object header informing about object properties, without it being fully decoded in the process.
Variants§
Loose
The object was not packed, but is currently located in the loose object portion of the database.
As packs are searched first, this means that in this very moment, the object whose header we retrieved is unique in the object database.
Packed(Outcome)
The object was present in a pack.
Note that this does not imply it is unique in the database, as it might be present in more than one pack and even as loose object.
Implementations§
Trait Implementations§
source§impl Ord for Header
impl Ord for Header
source§impl PartialOrd for Header
impl PartialOrd for Header
impl Copy for Header
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)