Struct simplicity::FailEntropy
source · pub struct FailEntropy(/* private fields */);Expand description
512-bit opaque blob of data used to seed Fail nodes
Implementations§
source§impl FailEntropy
impl FailEntropy
sourcepub fn from_byte_array(data: [u8; 64]) -> Self
pub fn from_byte_array(data: [u8; 64]) -> Self
Construct a FailEntropy from raw data
Trait Implementations§
source§impl AsRef<[u8]> for FailEntropy
impl AsRef<[u8]> for FailEntropy
source§impl Clone for FailEntropy
impl Clone for FailEntropy
source§fn clone(&self) -> FailEntropy
fn clone(&self) -> FailEntropy
Returns a copy of the value. Read more
1.0.0 · 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 FailEntropy
impl Debug for FailEntropy
source§impl Display for FailEntropy
impl Display for FailEntropy
source§impl Hash for FailEntropy
impl Hash for FailEntropy
source§impl Ord for FailEntropy
impl Ord for FailEntropy
source§fn cmp(&self, other: &FailEntropy) -> Ordering
fn cmp(&self, other: &FailEntropy) -> Ordering
1.21.0 · 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 FailEntropy
impl PartialEq for FailEntropy
source§fn eq(&self, other: &FailEntropy) -> bool
fn eq(&self, other: &FailEntropy) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for FailEntropy
impl PartialOrd for FailEntropy
source§fn partial_cmp(&self, other: &FailEntropy) -> Option<Ordering>
fn partial_cmp(&self, other: &FailEntropy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for FailEntropy
impl Eq for FailEntropy
impl StructuralPartialEq for FailEntropy
Auto Trait Implementations§
impl RefUnwindSafe for FailEntropy
impl Send for FailEntropy
impl Sync for FailEntropy
impl Unpin for FailEntropy
impl UnwindSafe for FailEntropy
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