[][src]Struct ontio_std::types::U128

pub struct U128(_);

Implementations

impl U128[src]

pub const fn new(val: u128) -> Self[src]

pub const fn from_le_bytes(bs: [u8; 16]) -> Self[src]

pub const fn is_zero(self) -> bool[src]

pub const fn to_le_bytes(self) -> [u8; 16][src]

pub const fn raw(self) -> u128[src]

pub const fn to_i128(self) -> I128[src]

Trait Implementations

impl<'a> Add<&'a U128> for U128[src]

type Output = U128

The resulting type after applying the + operator.

impl<'a> Add<&'a U128> for U256[src]

type Output = U256

The resulting type after applying the + operator.

impl Add<U128> for U128[src]

type Output = U128

The resulting type after applying the + operator.

impl Add<U128> for U256[src]

type Output = U256

The resulting type after applying the + operator.

impl Add<u128> for U128[src]

type Output = U128

The resulting type after applying the + operator.

impl AddAssign<U128> for U128[src]

impl AddAssign<U128> for U256[src]

impl AddAssign<u128> for U128[src]

impl Clone for U128[src]

impl Copy for U128[src]

impl Debug for U128[src]

impl Default for U128[src]

impl Display for U128[src]

impl<'a> Div<&'a U128> for U128[src]

type Output = U128

The resulting type after applying the / operator.

impl<'a> Div<&'a U128> for U256[src]

type Output = U256

The resulting type after applying the / operator.

impl Div<U128> for U128[src]

type Output = U128

The resulting type after applying the / operator.

impl Div<U128> for U256[src]

type Output = U256

The resulting type after applying the / operator.

impl Div<u128> for U128[src]

type Output = U128

The resulting type after applying the / operator.

impl Encoder for U128[src]

impl Eq for U128[src]

impl From<U128> for U256[src]

impl<'a> Mul<&'a U128> for U128[src]

type Output = U128

The resulting type after applying the * operator.

impl<'a> Mul<&'a U128> for U256[src]

type Output = U256

The resulting type after applying the * operator.

impl<'a> Mul<&'a u128> for U128[src]

type Output = U128

The resulting type after applying the * operator.

impl Mul<U128> for U128[src]

type Output = U128

The resulting type after applying the * operator.

impl Mul<U128> for U256[src]

type Output = U256

The resulting type after applying the * operator.

impl Mul<u128> for U128[src]

type Output = U128

The resulting type after applying the * operator.

impl Ord for U128[src]

impl PartialEq<U128> for U128[src]

impl PartialOrd<U128> for U128[src]

impl StructuralEq for U128[src]

impl StructuralPartialEq for U128[src]

impl<'a> Sub<&'a U128> for U128[src]

type Output = U128

The resulting type after applying the - operator.

impl<'a> Sub<&'a U128> for U256[src]

type Output = U256

The resulting type after applying the - operator.

impl Sub<U128> for U128[src]

type Output = U128

The resulting type after applying the - operator.

impl Sub<U128> for U256[src]

type Output = U256

The resulting type after applying the - operator.

impl Sub<u128> for U128[src]

type Output = U128

The resulting type after applying the - operator.

impl SubAssign<U128> for U128[src]

impl SubAssign<U128> for U256[src]

impl SubAssign<u128> for U128[src]

impl<'a> Sum<&'a U128> for U128[src]

impl Sum<U128> for U128[src]

impl<'a> VmValueDecoder<'a> for U128[src]

impl VmValueEncoder for U128[src]

Auto Trait Implementations

impl Send for U128

impl Sync for U128

impl Unpin for U128

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.