[−][src]Struct ontio_std::types::U256
Implementations
impl U256
[src]
pub const MAX: U256
[src]
pub const fn new(value: u128) -> Self
[src]
pub fn as_u128(&self) -> U128
[src]
pub fn from_little_endian(slice: &[u8]) -> Self
[src]
pub fn to_le_bytes(&self) -> [u8; 32]
[src]
Trait Implementations
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<'a> Add<&'a U256> for U256
[src]
type Output = U256
The resulting type after applying the +
operator.
pub fn add(self, rhs: &'a U256) -> 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<U256> for U256
[src]
type Output = U256
The resulting type after applying the +
operator.
pub fn add(self, rhs: U256) -> 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 AddAssign<U128> for U256
[src]
pub fn add_assign(&mut self, rhs: U128)
[src]
impl AddAssign<U256> for U256
[src]
pub fn add_assign(&mut self, rhs: U256)
[src]
impl Clone for U256
[src]
pub fn clone(&self) -> U256
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for U256
[src]
impl Debug for U256
[src]
impl Default for U256
[src]
impl Display for U256
[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 U256
[src]
type Output = U256
The resulting type after applying the /
operator.
pub fn div(self, rhs: U128) -> Self::Output
[src]
impl Div<U256> for U256
[src]
type Output = U256
The resulting type after applying the /
operator.
pub fn div(self, rhs: U256) -> 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 Eq for U256
[src]
impl From<U128> for U256
[src]
impl From<u128> for U256
[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 U256
[src]
type Output = U256
The resulting type after applying the *
operator.
pub fn mul(self, rhs: &'a 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<U256> for U256
[src]
type Output = U256
The resulting type after applying the *
operator.
pub fn mul(self, rhs: U256) -> 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 Ord for U256
[src]
pub fn cmp(&self, other: &U256) -> 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<U256> for U256
[src]
impl PartialOrd<U256> for U256
[src]
pub fn partial_cmp(&self, other: &U256) -> Option<Ordering>
[src]
pub fn lt(&self, other: &U256) -> bool
[src]
pub fn le(&self, other: &U256) -> bool
[src]
pub fn gt(&self, other: &U256) -> bool
[src]
pub fn ge(&self, other: &U256) -> bool
[src]
impl StructuralEq for U256
[src]
impl StructuralPartialEq for U256
[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 U256
[src]
type Output = U256
The resulting type after applying the -
operator.
pub fn sub(self, rhs: U128) -> Self::Output
[src]
impl Sub<U256> for U256
[src]
type Output = U256
The resulting type after applying the -
operator.
pub fn sub(self, rhs: U256) -> 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 SubAssign<U128> for U256
[src]
pub fn sub_assign(&mut self, rhs: U128)
[src]
impl SubAssign<U256> for U256
[src]
pub fn sub_assign(&mut self, rhs: U256)
[src]
impl<'a> Sum<&'a U256> for U256
[src]
impl Sum<U256> for U256
[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>,