Type Alias ex3_node_types::BlockHeight

source ·
pub type BlockHeight = Ex3Uint;

Aliased Type§

struct BlockHeight(pub BigUint);

Fields§

§0: BigUint

Trait Implementations§

source§

impl Add<Ex3Uint> for Ex3Uint

§

type Output = Ex3Uint

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<Ex3Uint> for Ex3Uint

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl CheckedAdd for Ex3Uint

source§

fn checked_add(&self, rhs: &Self) -> Option<Self>

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

impl CheckedDiv for Ex3Uint

source§

fn checked_div(&self, rhs: &Self) -> Option<Self>

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

impl CheckedMul for Ex3Uint

source§

fn checked_mul(&self, rhs: &Self) -> Option<Self>

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

impl CheckedSub for Ex3Uint

source§

fn checked_sub(&self, rhs: &Self) -> Option<Self>

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

impl Clone for Ex3Uint

source§

fn clone(&self) -> Ex3Uint

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Ex3Uint

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Ex3Uint

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

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

impl Display for Ex3Uint

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Div<Ex3Uint> for Ex3Uint

§

type Output = Ex3Uint

The resulting type after applying the / operator.
source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
source§

impl DivAssign<Ex3Uint> for Ex3Uint

source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
source§

impl From<BigUint> for Ex3Uint

source§

fn from(value: BigUint) -> Self

Converts to this type from the input type.
source§

impl From<Nat> for Ex3Uint

source§

fn from(value: Nat) -> Self

Converts to this type from the input type.
source§

impl From<u128> for Ex3Uint

source§

fn from(value: u128) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Ex3Uint

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Ex3Uint

source§

fn from(value: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Ex3Uint

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Ex3Uint

source§

fn from(value: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for Ex3Uint

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl Hash for Ex3Uint

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Mul<Ex3Uint> for Ex3Uint

§

type Output = Ex3Uint

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
source§

impl MulAssign<Ex3Uint> for Ex3Uint

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl One for Ex3Uint

source§

fn one() -> Self

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

fn set_one(&mut self)

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

fn is_one(&self) -> boolwhere Self: PartialEq,

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

impl Ord for Ex3Uint

source§

fn cmp(&self, other: &Ex3Uint) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Ex3Uint> for Ex3Uint

source§

fn eq(&self, other: &Ex3Uint) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Ex3Uint> for Ex3Uint

source§

fn partial_cmp(&self, other: &Ex3Uint) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Rem<Ex3Uint> for Ex3Uint

§

type Output = Ex3Uint

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
source§

impl RemAssign<Ex3Uint> for Ex3Uint

source§

fn rem_assign(&mut self, rhs: Self)

Performs the %= operation. Read more
source§

impl Serialize for Ex3Uint

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

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

impl Storable for Ex3Uint

source§

fn to_bytes(&self) -> Cow<'_, [u8]>

Converts an element into bytes. Read more
source§

fn from_bytes(bytes: Cow<'_, [u8]>) -> Self

Converts bytes into an element.
source§

const BOUND: Bound = _

The size bounds of the type.
source§

fn to_bytes_checked(&self) -> Cow<'_, [u8]>

Like to_bytes, but includes additional checks to ensure the element’s serialized bytes are within the element’s bounds.
source§

impl Sub<Ex3Uint> for Ex3Uint

§

type Output = Ex3Uint

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<Ex3Uint> for Ex3Uint

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl Zero for Ex3Uint

source§

fn zero() -> Self

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.
source§

impl Eq for Ex3Uint

source§

impl StructuralEq for Ex3Uint

source§

impl StructuralPartialEq for Ex3Uint