Struct ckb_rational::RationalU256 [−][src]
pub struct RationalU256 { /* fields omitted */ }Expand description
Represents the ratio numerator / denominator, where numerator and denominator are both
unsigned 256-bit integers.
Implementations
Creates a new ratio numer / denom without checking whether denom is zero.
Creates a new ratio t / 1.
Creates a new ratio 0 / 1.
Creates a new ratio 1 / 1.
Computes self - rhs and saturates the result to zero when self is less than rhs.
Returns self - rhs when self > rhs, returns zero otherwise.
Computes self - rhs and saturates the result to zero when self is less than rhs.
Returns self - rhs when self > rhs, returns zero otherwise.
Trait Implementations
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the + operator.
Performs the + operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the + operator.
Performs the + operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the + operator.
Performs the + operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the + operator.
Performs the + operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the + operator.
Performs the + operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the + operator.
Performs the + operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the + operator.
Performs the + operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the + operator.
Performs the + operation. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the / operator.
Performs the / operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the / operator.
Performs the / operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the / operator.
Performs the / operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the / operator.
Performs the / operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the / operator.
Performs the / operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the / operator.
Performs the / operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the / operator.
Performs the / operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the / operator.
Performs the / operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the * operator.
Performs the * operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the * operator.
Performs the * operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the * operator.
Performs the * operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the * operator.
Performs the * operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the * operator.
Performs the * operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the * operator.
Performs the * operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the * operator.
Performs the * operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the * operator.
Performs the * operation. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the - operator.
Performs the - operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the - operator.
Performs the - operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the - operator.
Performs the - operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the - operator.
Performs the - operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the - operator.
Performs the - operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the - operator.
Performs the - operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the - operator.
Performs the - operation. Read more
type Output = RationalU256
type Output = RationalU256
The resulting type after applying the - operator.
Performs the - operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for RationalU256
impl Send for RationalU256
impl Sync for RationalU256
impl Unpin for RationalU256
impl UnwindSafe for RationalU256
Blanket Implementations
Mutably borrows from an owned value. Read more