Enum commit_verify::mpc::Leaf
source · pub enum Leaf {
Inhabited {
protocol: ProtocolId,
message: Message,
},
Entropy {
entropy: u64,
pos: u16,
},
}
Variants§
Implementations§
Trait Implementations§
source§impl CommitEncode for Leaf
impl CommitEncode for Leaf
source§fn commit_encode(&self, e: &mut impl Write)
fn commit_encode(&self, e: &mut impl Write)
Encodes the data for the commitment by writing them directly into a
io::Write
writer instancesource§impl CommitmentId for Leaf
impl CommitmentId for Leaf
source§impl PartialEq<Leaf> for Leaf
impl PartialEq<Leaf> for Leaf
impl Copy for Leaf
impl Eq for Leaf
impl StructuralEq for Leaf
impl StructuralPartialEq for Leaf
Auto Trait Implementations§
impl RefUnwindSafe for Leaf
impl Send for Leaf
impl Sync for Leaf
impl Unpin for Leaf
impl UnwindSafe for Leaf
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.