pub struct ResolvedPackObject { /* private fields */ }Expand description
Immutable, identity-bound materialization accepted as a non-pack REF base.
The object ID and structural depth are compiler-controlled and travel with
the same Arc as the body. Pack-derived values can only be obtained from
PackReadOutcome::resolved_base. Loose/non-delta objects can only be
introduced through RefDeltaBases::insert_loose, which computes their ID
and does not expose a reusable depth token.
ⓘ
let _ = ResolvedPackObject { object, oid, depth: 0, origin: None };Implementations§
Source§impl ResolvedPackObject
impl ResolvedPackObject
pub fn object(&self) -> &EncodedObject
pub const fn object_id(&self) -> ObjectId
pub const fn delta_depth(&self) -> usize
Trait Implementations§
Source§impl Clone for ResolvedPackObject
impl Clone for ResolvedPackObject
Auto Trait Implementations§
impl Freeze for ResolvedPackObject
impl RefUnwindSafe for ResolvedPackObject
impl Send for ResolvedPackObject
impl Sync for ResolvedPackObject
impl Unpin for ResolvedPackObject
impl UnsafeUnpin for ResolvedPackObject
impl UnwindSafe for ResolvedPackObject
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