pub struct EncodedObject {
pub object_type: ObjectType,
pub body: Vec<u8>,
}Fields§
§object_type: ObjectType§body: Vec<u8>Implementations§
Source§impl EncodedObject
impl EncodedObject
Sourcepub fn framed_bytes(&self) -> Vec<u8> ⓘ
pub fn framed_bytes(&self) -> Vec<u8> ⓘ
Return the exact loose-object frame bytes: "<type> <len>\0<body>".
Sourcepub fn object_id(&self, format: ObjectFormat) -> Result<ObjectId>
pub fn object_id(&self, format: ObjectFormat) -> Result<ObjectId>
Compute the object id from the raw body bytes.
Trait Implementations§
Source§impl Clone for EncodedObject
impl Clone for EncodedObject
Source§fn clone(&self) -> EncodedObject
fn clone(&self) -> EncodedObject
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 EncodedObject
impl Debug for EncodedObject
impl Eq for EncodedObject
Source§impl PartialEq for EncodedObject
impl PartialEq for EncodedObject
Source§fn eq(&self, other: &EncodedObject) -> bool
fn eq(&self, other: &EncodedObject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EncodedObject
Auto Trait Implementations§
impl Freeze for EncodedObject
impl RefUnwindSafe for EncodedObject
impl Send for EncodedObject
impl Sync for EncodedObject
impl Unpin for EncodedObject
impl UnsafeUnpin for EncodedObject
impl UnwindSafe for EncodedObject
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