[−][src]Struct ontio_std::types::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.
pub fn add(self, rhs: &'a U128) -> Self::Output
[src]
impl<'a> Add<&'a U128> for U256
[src]
type Output = U256
The resulting type after applying the +
operator.
pub fn add(self, rhs: &'a U128) -> Self::Output
[src]
impl Add<U128> for U128
[src]
type Output = U128
The resulting type after applying the +
operator.
pub fn add(self, rhs: U128) -> Self::Output
[src]
impl Add<U128> for U256
[src]
type Output = U256
The resulting type after applying the +
operator.
pub fn add(self, rhs: U128) -> Self::Output
[src]
impl Add<u128> for U128
[src]
type Output = U128
The resulting type after applying the +
operator.
pub fn add(self, rhs: u128) -> Self::Output
[src]
impl AddAssign<U128> for U128
[src]
pub fn add_assign(&mut self, rhs: U128)
[src]
impl AddAssign<U128> for U256
[src]
pub fn add_assign(&mut self, rhs: U128)
[src]
impl AddAssign<u128> for U128
[src]
pub fn add_assign(&mut self, rhs: u128)
[src]
impl Clone for U128
[src]
pub fn clone(&self) -> U128
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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.
pub fn div(self, rhs: &'a U128) -> Self::Output
[src]
impl<'a> Div<&'a U128> for U256
[src]
type Output = U256
The resulting type after applying the /
operator.
pub fn div(self, rhs: &'a U128) -> Self::Output
[src]
impl Div<U128> for U128
[src]
type Output = U128
The resulting type after applying the /
operator.
pub fn div(self, rhs: U128) -> Self::Output
[src]
impl Div<U128> for U256
[src]
type Output = U256
The resulting type after applying the /
operator.
pub fn div(self, rhs: U128) -> Self::Output
[src]
impl Div<u128> for U128
[src]
type Output = U128
The resulting type after applying the /
operator.
pub fn div(self, rhs: u128) -> Self::Output
[src]
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.
pub fn mul(self, rhs: &'a U128) -> Self::Output
[src]
impl<'a> Mul<&'a U128> for U256
[src]
type Output = U256
The resulting type after applying the *
operator.
pub fn mul(self, rhs: &'a U128) -> Self::Output
[src]
impl<'a> Mul<&'a u128> for U128
[src]
type Output = U128
The resulting type after applying the *
operator.
pub fn mul(self, rhs: &'a u128) -> Self::Output
[src]
impl Mul<U128> for U128
[src]
type Output = U128
The resulting type after applying the *
operator.
pub fn mul(self, rhs: U128) -> Self::Output
[src]
impl Mul<U128> for U256
[src]
type Output = U256
The resulting type after applying the *
operator.
pub fn mul(self, rhs: U128) -> Self::Output
[src]
impl Mul<u128> for U128
[src]
type Output = U128
The resulting type after applying the *
operator.
pub fn mul(self, rhs: u128) -> Self::Output
[src]
impl Ord for U128
[src]
pub fn cmp(&self, other: &U128) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<U128> for U128
[src]
impl PartialOrd<U128> for U128
[src]
pub fn partial_cmp(&self, other: &U128) -> Option<Ordering>
[src]
pub fn lt(&self, other: &U128) -> bool
[src]
pub fn le(&self, other: &U128) -> bool
[src]
pub fn gt(&self, other: &U128) -> bool
[src]
pub fn ge(&self, other: &U128) -> bool
[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.
pub fn sub(self, rhs: &'a U128) -> Self::Output
[src]
impl<'a> Sub<&'a U128> for U256
[src]
type Output = U256
The resulting type after applying the -
operator.
pub fn sub(self, rhs: &'a U128) -> Self::Output
[src]
impl Sub<U128> for U128
[src]
type Output = U128
The resulting type after applying the -
operator.
pub fn sub(self, rhs: U128) -> Self::Output
[src]
impl Sub<U128> for U256
[src]
type Output = U256
The resulting type after applying the -
operator.
pub fn sub(self, rhs: U128) -> Self::Output
[src]
impl Sub<u128> for U128
[src]
type Output = U128
The resulting type after applying the -
operator.
pub fn sub(self, rhs: u128) -> Self::Output
[src]
impl SubAssign<U128> for U128
[src]
pub fn sub_assign(&mut self, rhs: U128)
[src]
impl SubAssign<U128> for U256
[src]
pub fn sub_assign(&mut self, rhs: U128)
[src]
impl SubAssign<u128> for U128
[src]
pub fn sub_assign(&mut self, rhs: u128)
[src]
impl<'a> Sum<&'a U128> for U128
[src]
impl Sum<U128> for U128
[src]
impl<'a> VmValueDecoder<'a> for U128
[src]
pub fn deserialize(parser: &mut VmValueParser<'a>) -> Result<Self, Error>
[src]
impl VmValueEncoder for U128
[src]
pub fn serialize(&self, builder: &mut VmValueBuilder)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,