pub struct Commitment(/* private fields */);Expand description
A hiding, binding commitment to a value (a 64-byte SHA3-512 digest).
Implementations§
Trait Implementations§
Source§impl Clone for Commitment
impl Clone for Commitment
Source§fn clone(&self) -> Commitment
fn clone(&self) -> Commitment
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 moreSource§impl Debug for Commitment
impl Debug for Commitment
impl Eq for Commitment
Source§impl Hash for Commitment
impl Hash for Commitment
Source§impl PartialEq for Commitment
impl PartialEq for Commitment
Source§fn eq(&self, other: &Commitment) -> bool
fn eq(&self, other: &Commitment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Commitment
Auto Trait Implementations§
impl Freeze for Commitment
impl RefUnwindSafe for Commitment
impl Send for Commitment
impl Sync for Commitment
impl Unpin for Commitment
impl UnsafeUnpin for Commitment
impl UnwindSafe for Commitment
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