Struct bigint::MI256
[−]
[src]
pub struct MI256(pub Sign, pub M256);
Represents a signed module 256-bit integer.
Methods
impl MI256
[src]
fn zero() -> MI256
[src]
Zero value of MI256.
fn one() -> MI256
[src]
One value of MI256.
fn max_value() -> MI256
[src]
Maximum value of MI256.
fn min_value() -> MI256
[src]
Minimum value of MI256.
Trait Implementations
impl Eq for MI256
[src]
impl PartialEq for MI256
[src]
fn eq(&self, __arg_0: &MI256) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MI256) -> bool
[src]
This method tests for !=
.
impl Debug for MI256
[src]
impl Copy for MI256
[src]
impl Clone for MI256
[src]
fn clone(&self) -> MI256
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for MI256
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Default for MI256
[src]
impl From<M256> for MI256
[src]
impl Into<M256> for MI256
[src]
impl Ord for MI256
[src]
fn cmp(&self, other: &MI256) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for MI256
[src]
fn partial_cmp(&self, other: &MI256) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Div for MI256
[src]
type Output = MI256
The resulting type after applying the /
operator.
fn div(self, other: MI256) -> MI256
[src]
Performs the /
operation.