pub struct ResolvedObject<'a> { /* private fields */ }Expand description
A canonical body with a computed ID and tracked delta depth. A decoded entry retains its pack/offset identity, preventing cross-pack offset-base confusion.
Implementations§
Source§impl<'a> ResolvedObject<'a>
impl<'a> ResolvedObject<'a>
Sourcepub fn external(object: Object<'a>) -> Self
pub fn external(object: Object<'a>) -> Self
Use a canonical object from host storage as a reference-delta base.
pub fn external_with_format(object: Object<'a>, format: ObjectFormat) -> Self
pub fn object(&self) -> Object<'a>
pub fn id(&self) -> ObjectId
pub fn offset(&self) -> Option<u64>
pub fn delta_depth(&self) -> u32
pub fn verify_id(&self, expected: ObjectId) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for ResolvedObject<'a>
impl<'a> RefUnwindSafe for ResolvedObject<'a>
impl<'a> Send for ResolvedObject<'a>
impl<'a> Sync for ResolvedObject<'a>
impl<'a> Unpin for ResolvedObject<'a>
impl<'a> UnsafeUnpin for ResolvedObject<'a>
impl<'a> UnwindSafe for ResolvedObject<'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