pub struct PatchSetDigest(pub [u8; 32]);Expand description
A 32-byte digest over a canonicalized set of patch ids (RFC 115 Stage 1 design D4). Not
persisted as its own object – a pure comparison value, MerkleRoot’s own shape. Lives here
rather than in prikk-store (where every value that computes one still does,
compute_patch_set_digest and friends) because TagPayload (RFC 117 T1) carries one, and
prikk-object cannot depend on prikk-store – the same crate-boundary reason
state_root.rs’s compute_state_root stays in prikk-store while MerkleRoot itself lives
here.
Tuple Fields§
§0: [u8; 32]Trait Implementations§
Source§impl Clone for PatchSetDigest
impl Clone for PatchSetDigest
Source§fn clone(&self) -> PatchSetDigest
fn clone(&self) -> PatchSetDigest
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 PatchSetDigest
Source§impl Debug for PatchSetDigest
impl Debug for PatchSetDigest
impl Eq for PatchSetDigest
Source§impl Hash for PatchSetDigest
impl Hash for PatchSetDigest
Source§impl Ord for PatchSetDigest
impl Ord for PatchSetDigest
Source§fn cmp(&self, other: &PatchSetDigest) -> Ordering
fn cmp(&self, other: &PatchSetDigest) -> 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 PatchSetDigest
impl PartialEq for PatchSetDigest
Source§impl PartialOrd for PatchSetDigest
impl PartialOrd for PatchSetDigest
impl StructuralPartialEq for PatchSetDigest
Auto Trait Implementations§
impl Freeze for PatchSetDigest
impl RefUnwindSafe for PatchSetDigest
impl Send for PatchSetDigest
impl Sync for PatchSetDigest
impl Unpin for PatchSetDigest
impl UnsafeUnpin for PatchSetDigest
impl UnwindSafe for PatchSetDigest
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