pub struct ObjectRef<'a> {
pub kind: ObjectKind,
pub data: &'a [u8],
}Expand description
Borrowed view of an object’s kind and uncompressed payload.
Produced by crate::odb::Odb::read_into and
crate::odb::store::ObjectStore::read_into;
the payload bytes live in the caller’s buffer.
Fields§
§kind: ObjectKindObject type after resolving any pack delta chain.
data: &'a [u8]Uncompressed payload (header stripped).
Implementations§
Trait Implementations§
impl<'a> Copy for ObjectRef<'a>
impl<'a> Eq for ObjectRef<'a>
impl<'a> StructuralPartialEq for ObjectRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ObjectRef<'a>
impl<'a> RefUnwindSafe for ObjectRef<'a>
impl<'a> Send for ObjectRef<'a>
impl<'a> Sync for ObjectRef<'a>
impl<'a> Unpin for ObjectRef<'a>
impl<'a> UnsafeUnpin for ObjectRef<'a>
impl<'a> UnwindSafe for ObjectRef<'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