pub struct PackLogicalId(/* private fields */);Expand description
Root-spool-scoped identity of the logical objects in a pack.
This identity is stable across compression, record ordering, and delta-base selection. Hosted storage must scope it to the root spool: identical object inventories in unrelated root spools intentionally have the same value.
The canonical inventory is the sorted multiset of fixed-width
(id-kind, id, object-type, blake3(uncompressed-content)) records, prefixed
by its big-endian u64 record count and hashed with
PACK_LOGICAL_ID_CONTEXT as the BLAKE3 derive-key context.
Implementations§
Source§impl PackLogicalId
impl PackLogicalId
Sourcepub const fn from_bytes(bytes: [u8; 32]) -> PackLogicalId
pub const fn from_bytes(bytes: [u8; 32]) -> PackLogicalId
Construct an id from its canonical 32-byte representation.
Trait Implementations§
Source§impl Clone for PackLogicalId
impl Clone for PackLogicalId
Source§fn clone(&self) -> PackLogicalId
fn clone(&self) -> PackLogicalId
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 moreimpl Copy for PackLogicalId
Source§impl Debug for PackLogicalId
impl Debug for PackLogicalId
Source§impl Display for PackLogicalId
impl Display for PackLogicalId
impl Eq for PackLogicalId
Source§impl Hash for PackLogicalId
impl Hash for PackLogicalId
Source§impl Ord for PackLogicalId
impl Ord for PackLogicalId
Source§fn cmp(&self, other: &PackLogicalId) -> Ordering
fn cmp(&self, other: &PackLogicalId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PackLogicalId
impl PartialEq for PackLogicalId
Source§impl PartialOrd for PackLogicalId
impl PartialOrd for PackLogicalId
impl StructuralPartialEq for PackLogicalId
Auto Trait Implementations§
impl Freeze for PackLogicalId
impl RefUnwindSafe for PackLogicalId
impl Send for PackLogicalId
impl Sync for PackLogicalId
impl Unpin for PackLogicalId
impl UnsafeUnpin for PackLogicalId
impl UnwindSafe for PackLogicalId
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