Struct zksync_consensus_roles::validator::GenesisHash
source · pub struct GenesisHash(/* private fields */);
Expand description
Hash of the genesis specification.
Trait Implementations§
source§impl Clone for GenesisHash
impl Clone for GenesisHash
source§fn clone(&self) -> GenesisHash
fn clone(&self) -> GenesisHash
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 GenesisHash
impl Debug for GenesisHash
source§impl Distribution<GenesisHash> for Standard
impl Distribution<GenesisHash> for Standard
source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> GenesisHash
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> GenesisHash
Generate a random value of
T
, using rng
as the source of randomness.source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
Create an iterator that generates random values of
T
, using rng
as
the source of randomness. Read moresource§impl Hash for GenesisHash
impl Hash for GenesisHash
source§impl Ord for GenesisHash
impl Ord for GenesisHash
source§fn cmp(&self, other: &GenesisHash) -> Ordering
fn cmp(&self, other: &GenesisHash) -> 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 GenesisHash
impl PartialEq for GenesisHash
source§impl PartialOrd for GenesisHash
impl PartialOrd for GenesisHash
source§impl ProtoFmt for GenesisHash
impl ProtoFmt for GenesisHash
source§impl TextFmt for GenesisHash
impl TextFmt for GenesisHash
impl Copy for GenesisHash
impl Eq for GenesisHash
impl StructuralPartialEq for GenesisHash
Auto Trait Implementations§
impl Freeze for GenesisHash
impl RefUnwindSafe for GenesisHash
impl Send for GenesisHash
impl Sync for GenesisHash
impl Unpin for GenesisHash
impl UnwindSafe for GenesisHash
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.