Struct chain_time::timeframe::Slot
source · pub struct Slot(pub u64);
Expand description
Identify a slot in a specific timeframe
The slots are not comparable to others slots made on a different time frame
Tuple Fields§
§0: u64
Trait Implementations§
source§impl Arbitrary for Slot
impl Arbitrary for Slot
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Ord for Slot
impl Ord for Slot
source§impl PartialEq<Slot> for Slot
impl PartialEq<Slot> for Slot
source§impl PartialOrd<Slot> for Slot
impl PartialOrd<Slot> for Slot
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 Slot
impl Eq for Slot
impl StructuralEq for Slot
impl StructuralPartialEq for Slot
Auto Trait Implementations§
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnwindSafe for Slot
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