pub struct PackRepresentationHash(/* private fields */);Expand description
Hash of one finalized physical pack representation.
This is exactly blake3(pack_bytes), including the pack’s checksum trailer.
It is suitable for integrity checks and physical location, but not logical
pack equality or cross-machine deduplication.
Implementations§
Source§impl PackRepresentationHash
impl PackRepresentationHash
Sourcepub fn compute(pack_bytes: &[u8]) -> PackRepresentationHash
pub fn compute(pack_bytes: &[u8]) -> PackRepresentationHash
Hash one complete finalized pack representation.
Sourcepub const fn from_bytes(bytes: [u8; 32]) -> PackRepresentationHash
pub const fn from_bytes(bytes: [u8; 32]) -> PackRepresentationHash
Construct a representation hash from its canonical 32-byte form.
Trait Implementations§
Source§impl Clone for PackRepresentationHash
impl Clone for PackRepresentationHash
Source§fn clone(&self) -> PackRepresentationHash
fn clone(&self) -> PackRepresentationHash
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 PackRepresentationHash
Source§impl Debug for PackRepresentationHash
impl Debug for PackRepresentationHash
Source§impl Display for PackRepresentationHash
impl Display for PackRepresentationHash
impl Eq for PackRepresentationHash
Source§impl Hash for PackRepresentationHash
impl Hash for PackRepresentationHash
Source§impl Ord for PackRepresentationHash
impl Ord for PackRepresentationHash
Source§fn cmp(&self, other: &PackRepresentationHash) -> Ordering
fn cmp(&self, other: &PackRepresentationHash) -> 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 PackRepresentationHash
impl PartialEq for PackRepresentationHash
Source§impl PartialOrd for PackRepresentationHash
impl PartialOrd for PackRepresentationHash
impl StructuralPartialEq for PackRepresentationHash
Auto Trait Implementations§
impl Freeze for PackRepresentationHash
impl RefUnwindSafe for PackRepresentationHash
impl Send for PackRepresentationHash
impl Sync for PackRepresentationHash
impl Unpin for PackRepresentationHash
impl UnsafeUnpin for PackRepresentationHash
impl UnwindSafe for PackRepresentationHash
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