[][src]Struct casperlabs_types::BlockTime

pub struct BlockTime(_);

A newtype wrapping a u64 which represents the block time.

Implementations

impl BlockTime[src]

pub fn new(value: u64) -> Self[src]

Constructs a BlockTime.

pub fn saturating_sub(self, other: BlockTime) -> Self[src]

Saturating integer subtraction. Computes self - other, saturating at 0 instead of overflowing.

Trait Implementations

impl Clone for BlockTime[src]

impl Copy for BlockTime[src]

impl Debug for BlockTime[src]

impl Default for BlockTime[src]

impl Eq for BlockTime[src]

impl FromBytes for BlockTime[src]

impl Into<u64> for BlockTime[src]

impl PartialEq<BlockTime> for BlockTime[src]

impl PartialOrd<BlockTime> for BlockTime[src]

impl StructuralEq for BlockTime[src]

impl StructuralPartialEq for BlockTime[src]

impl ToBytes for BlockTime[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.