Type Alias sp_runtime::generic::Phase

source ·
pub type Phase = u64;
Expand description

Era phase

Trait Implementations§

source§

impl Bounded for u64

source§

fn min_value() -> u64

Returns the smallest finite number this type can represent
source§

fn max_value() -> u64

Returns the largest finite number this type can represent
source§

impl CheckedAdd for u64

source§

fn checked_add(&self, v: &u64) -> Option<u64>

Adds two numbers, checking for overflow. If overflow happens, None is returned.
source§

impl CheckedDiv for u64

source§

fn checked_div(&self, v: &u64) -> Option<u64>

Divides two numbers, checking for underflow, overflow and division by zero. If any of that happens, None is returned.
source§

impl CheckedMul for u64

source§

fn checked_mul(&self, v: &u64) -> Option<u64>

Multiplies two numbers, checking for underflow or overflow. If underflow or overflow happens, None is returned.
source§

impl CheckedShl for u64

source§

fn checked_shl(&self, rhs: u32) -> Option<u64>

Checked shift left. Computes self << rhs, returning None if rhs is larger than or equal to the number of bits in self. Read more
source§

impl CheckedShr for u64

source§

fn checked_shr(&self, rhs: u32) -> Option<u64>

Checked shift right. Computes self >> rhs, returning None if rhs is larger than or equal to the number of bits in self. Read more
source§

impl CheckedSub for u64

source§

fn checked_sub(&self, v: &u64) -> Option<u64>

Subtracts two numbers, checking for underflow. If underflow happens, None is returned.
source§

impl<'de> Deserialize<'de> for u64

source§

fn deserialize<D>( deserializer: D ) -> Result<u64, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<UintAuthorityId> for u64

source§

fn from(id: UintAuthorityId) -> u64

Converts to this type from the input type.
source§

impl One for u64

source§

fn one() -> u64

Returns the multiplicative identity element of Self, 1. Read more
source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
source§

impl Printable for u64

source§

fn print(&self)

Print the object.
source§

impl Scale<u16> for u64

§

type Output = u64

The output type of the product of self and Other.
source§

fn mul(self, other: u16) -> Self::Output

@return the product of self and other.
source§

fn div(self, other: u16) -> Self::Output

@return the integer division of self and other.
source§

fn rem(self, other: u16) -> Self::Output

@return the modulo remainder of self and other.
source§

impl Scale<u32> for u64

§

type Output = u64

The output type of the product of self and Other.
source§

fn mul(self, other: u32) -> Self::Output

@return the product of self and other.
source§

fn div(self, other: u32) -> Self::Output

@return the integer division of self and other.
source§

fn rem(self, other: u32) -> Self::Output

@return the modulo remainder of self and other.
source§

impl Scale<u64> for u64

§

type Output = u64

The output type of the product of self and Other.
source§

fn mul(self, other: u64) -> Self::Output

@return the product of self and other.
source§

fn div(self, other: u64) -> Self::Output

@return the integer division of self and other.
source§

fn rem(self, other: u64) -> Self::Output

@return the modulo remainder of self and other.
source§

impl Scale<u8> for u64

§

type Output = u64

The output type of the product of self and Other.
source§

fn mul(self, other: u8) -> Self::Output

@return the product of self and other.
source§

fn div(self, other: u8) -> Self::Output

@return the integer division of self and other.
source§

fn rem(self, other: u8) -> Self::Output

@return the modulo remainder of self and other.
source§

impl Serialize for u64

source§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Zero for u64

source§

fn zero() -> u64

Returns the additive identity element of Self, 0. Read more
source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.