Struct chain_time::era::EpochSlotOffset
source · pub struct EpochSlotOffset(pub u32);
Expand description
Slot Offset in a given epoch
Tuple Fields§
§0: u32
Trait Implementations§
source§impl Arbitrary for EpochSlotOffset
impl Arbitrary for EpochSlotOffset
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<EpochSlotOffset>
type Strategy = BoxedStrategy<EpochSlotOffset>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Clone for EpochSlotOffset
impl Clone for EpochSlotOffset
source§fn clone(&self) -> EpochSlotOffset
fn clone(&self) -> EpochSlotOffset
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 EpochSlotOffset
impl Debug for EpochSlotOffset
source§impl Ord for EpochSlotOffset
impl Ord for EpochSlotOffset
source§fn cmp(&self, other: &EpochSlotOffset) -> Ordering
fn cmp(&self, other: &EpochSlotOffset) -> 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<EpochSlotOffset> for EpochSlotOffset
impl PartialEq<EpochSlotOffset> for EpochSlotOffset
source§fn eq(&self, other: &EpochSlotOffset) -> bool
fn eq(&self, other: &EpochSlotOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EpochSlotOffset> for EpochSlotOffset
impl PartialOrd<EpochSlotOffset> for EpochSlotOffset
source§fn partial_cmp(&self, other: &EpochSlotOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &EpochSlotOffset) -> 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 EpochSlotOffset
impl Eq for EpochSlotOffset
impl StructuralEq for EpochSlotOffset
impl StructuralPartialEq for EpochSlotOffset
Auto Trait Implementations§
impl RefUnwindSafe for EpochSlotOffset
impl Send for EpochSlotOffset
impl Sync for EpochSlotOffset
impl Unpin for EpochSlotOffset
impl UnwindSafe for EpochSlotOffset
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