Struct casper_types::BlockTime
source · pub struct BlockTime(/* private fields */);
Expand description
A newtype wrapping a u64
which represents the block time.
Implementations§
Trait Implementations§
source§impl PartialEq for BlockTime
impl PartialEq for BlockTime
source§impl PartialOrd for BlockTime
impl PartialOrd for BlockTime
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 ToBytes for BlockTime
impl ToBytes for BlockTime
source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8>
which would be returned from a successful call to
to_bytes()
or into_bytes()
. The data is not actually serialized, so this call is
relatively cheap.impl Copy for BlockTime
impl Eq for BlockTime
impl StructuralEq for BlockTime
impl StructuralPartialEq for BlockTime
Auto Trait Implementations§
impl RefUnwindSafe for BlockTime
impl Send for BlockTime
impl Sync for BlockTime
impl Unpin for BlockTime
impl UnwindSafe for BlockTime
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