Struct jormungandr_lib::interfaces::block0_configuration::number_of_slots_per_epoch::NumberOfSlotsPerEpoch
source · pub struct NumberOfSlotsPerEpoch(u32);
Tuple Fields§
§0: u32
Implementations§
source§impl NumberOfSlotsPerEpoch
impl NumberOfSlotsPerEpoch
sourcepub const MINIMUM: Self = _
pub const MINIMUM: Self = _
minimal value for the number of slots per epoch
assert_eq!(NumberOfSlotsPerEpoch::MINIMUM, NumberOfSlotsPerEpoch::new(1).unwrap())
Trait Implementations§
source§impl Clone for NumberOfSlotsPerEpoch
impl Clone for NumberOfSlotsPerEpoch
source§fn clone(&self) -> NumberOfSlotsPerEpoch
fn clone(&self) -> NumberOfSlotsPerEpoch
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 NumberOfSlotsPerEpoch
impl Debug for NumberOfSlotsPerEpoch
source§impl Default for NumberOfSlotsPerEpoch
impl Default for NumberOfSlotsPerEpoch
source§impl<'de> Deserialize<'de> for NumberOfSlotsPerEpoch
impl<'de> Deserialize<'de> for NumberOfSlotsPerEpoch
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for NumberOfSlotsPerEpoch
impl Display for NumberOfSlotsPerEpoch
source§impl From<NumberOfSlotsPerEpoch> for ConfigParam
impl From<NumberOfSlotsPerEpoch> for ConfigParam
source§fn from(number_of_slots_per_epoch: NumberOfSlotsPerEpoch) -> Self
fn from(number_of_slots_per_epoch: NumberOfSlotsPerEpoch) -> Self
Converts to this type from the input type.
source§impl From<NumberOfSlotsPerEpoch> for u32
impl From<NumberOfSlotsPerEpoch> for u32
source§fn from(number_of_slots_per_epoch: NumberOfSlotsPerEpoch) -> u32
fn from(number_of_slots_per_epoch: NumberOfSlotsPerEpoch) -> u32
Converts to this type from the input type.
source§impl Hash for NumberOfSlotsPerEpoch
impl Hash for NumberOfSlotsPerEpoch
source§impl Ord for NumberOfSlotsPerEpoch
impl Ord for NumberOfSlotsPerEpoch
source§fn cmp(&self, other: &NumberOfSlotsPerEpoch) -> Ordering
fn cmp(&self, other: &NumberOfSlotsPerEpoch) -> 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<NumberOfSlotsPerEpoch> for NumberOfSlotsPerEpoch
impl PartialEq<NumberOfSlotsPerEpoch> for NumberOfSlotsPerEpoch
source§fn eq(&self, other: &NumberOfSlotsPerEpoch) -> bool
fn eq(&self, other: &NumberOfSlotsPerEpoch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<NumberOfSlotsPerEpoch> for NumberOfSlotsPerEpoch
impl PartialOrd<NumberOfSlotsPerEpoch> for NumberOfSlotsPerEpoch
source§fn partial_cmp(&self, other: &NumberOfSlotsPerEpoch) -> Option<Ordering>
fn partial_cmp(&self, other: &NumberOfSlotsPerEpoch) -> 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 moresource§impl Serialize for NumberOfSlotsPerEpoch
impl Serialize for NumberOfSlotsPerEpoch
source§impl TryFrom<ConfigParam> for NumberOfSlotsPerEpoch
impl TryFrom<ConfigParam> for NumberOfSlotsPerEpoch
source§impl TryFrom<u32> for NumberOfSlotsPerEpoch
impl TryFrom<u32> for NumberOfSlotsPerEpoch
impl Copy for NumberOfSlotsPerEpoch
impl Eq for NumberOfSlotsPerEpoch
impl StructuralEq for NumberOfSlotsPerEpoch
impl StructuralPartialEq for NumberOfSlotsPerEpoch
Auto Trait Implementations§
impl RefUnwindSafe for NumberOfSlotsPerEpoch
impl Send for NumberOfSlotsPerEpoch
impl Sync for NumberOfSlotsPerEpoch
impl Unpin for NumberOfSlotsPerEpoch
impl UnwindSafe for NumberOfSlotsPerEpoch
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