Struct chain_time::era::EpochPosition
source · pub struct EpochPosition {
pub epoch: Epoch,
pub slot: EpochSlotOffset,
}
Expand description
Epoch position: this is an epoch and a slot offset
Fields§
§epoch: Epoch
The base epoch
slot: EpochSlotOffset
The offset from epoch
Trait Implementations§
source§impl Arbitrary for EpochPosition
impl Arbitrary for EpochPosition
source§impl Arbitrary for EpochPosition
impl Arbitrary for EpochPosition
§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<EpochPosition>
type Strategy = BoxedStrategy<EpochPosition>
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 EpochPosition
impl Clone for EpochPosition
source§fn clone(&self) -> EpochPosition
fn clone(&self) -> EpochPosition
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 EpochPosition
impl Debug for EpochPosition
source§impl Display for EpochPosition
impl Display for EpochPosition
source§impl Ord for EpochPosition
impl Ord for EpochPosition
source§fn cmp(&self, other: &EpochPosition) -> Ordering
fn cmp(&self, other: &EpochPosition) -> 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<EpochPosition> for EpochPosition
impl PartialEq<EpochPosition> for EpochPosition
source§fn eq(&self, other: &EpochPosition) -> bool
fn eq(&self, other: &EpochPosition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EpochPosition> for EpochPosition
impl PartialOrd<EpochPosition> for EpochPosition
source§fn partial_cmp(&self, other: &EpochPosition) -> Option<Ordering>
fn partial_cmp(&self, other: &EpochPosition) -> 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 EpochPosition
impl Eq for EpochPosition
impl StructuralEq for EpochPosition
impl StructuralPartialEq for EpochPosition
Auto Trait Implementations§
impl RefUnwindSafe for EpochPosition
impl Send for EpochPosition
impl Sync for EpochPosition
impl Unpin for EpochPosition
impl UnwindSafe for EpochPosition
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