[][src]Struct ckb_rational::RationalU256

pub struct RationalU256 { /* fields omitted */ }

Implementations

impl RationalU256[src]

pub fn new(numer: U256, denom: U256) -> RationalU256[src]

pub const fn new_raw(numer: U256, denom: U256) -> RationalU256[src]

pub const fn from_u256(t: U256) -> RationalU256[src]

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

pub const fn zero() -> RationalU256[src]

pub const fn one() -> RationalU256[src]

pub fn into_u256(self) -> U256[src]

pub fn saturating_sub(self, rhs: RationalU256) -> Self[src]

pub fn saturating_sub_u256(self, rhs: U256) -> Self[src]

Trait Implementations

impl<'_, '_> Add<&'_ RationalU256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the + operator.

impl<'_> Add<&'_ RationalU256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the + operator.

impl<'_, '_> Add<&'_ U256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the + operator.

impl<'_> Add<&'_ U256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the + operator.

impl Add<RationalU256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the + operator.

impl<'_> Add<RationalU256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the + operator.

impl Add<U256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the + operator.

impl<'_> Add<U256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the + operator.

impl Clone for RationalU256[src]

impl Debug for RationalU256[src]

impl Display for RationalU256[src]

impl<'_, '_> Div<&'_ RationalU256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the / operator.

impl<'_> Div<&'_ RationalU256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the / operator.

impl<'_, '_> Div<&'_ U256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the / operator.

impl<'_> Div<&'_ U256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the / operator.

impl Div<RationalU256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the / operator.

impl<'_> Div<RationalU256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the / operator.

impl Div<U256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the / operator.

impl<'_> Div<U256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the / operator.

impl Eq for RationalU256[src]

impl<'_, '_> Mul<&'_ RationalU256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the * operator.

impl<'_> Mul<&'_ RationalU256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the * operator.

impl<'_, '_> Mul<&'_ U256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the * operator.

impl<'_> Mul<&'_ U256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the * operator.

impl<'_> Mul<RationalU256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the * operator.

impl Mul<RationalU256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the * operator.

impl<'_> Mul<U256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the * operator.

impl Mul<U256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the * operator.

impl Ord for RationalU256[src]

impl PartialEq<RationalU256> for RationalU256[src]

impl PartialOrd<RationalU256> for RationalU256[src]

impl StructuralEq for RationalU256[src]

impl StructuralPartialEq for RationalU256[src]

impl<'_, '_> Sub<&'_ RationalU256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the - operator.

impl<'_> Sub<&'_ RationalU256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the - operator.

impl<'_, '_> Sub<&'_ U256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the - operator.

impl<'_> Sub<&'_ U256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the - operator.

impl Sub<RationalU256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the - operator.

impl<'_> Sub<RationalU256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the - operator.

impl Sub<U256> for RationalU256[src]

type Output = RationalU256

The resulting type after applying the - operator.

impl<'_> Sub<U256> for &'_ RationalU256[src]

type Output = RationalU256

The resulting type after applying the - operator.

Auto Trait Implementations

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.