Struct etcommon_bigint::MI256
[−]
[src]
pub struct MI256(pub Sign, pub M256);
Represents a signed module 256-bit integer.
Methods
impl MI256
[src]
fn zero() -> MI256
Zero value of MI256.
fn one() -> MI256
One value of MI256.
fn max_value() -> MI256
Maximum value of MI256.
fn min_value() -> MI256
Minimum value of MI256.
Trait Implementations
impl Eq for MI256
[src]
impl PartialEq for MI256
[src]
fn eq(&self, __arg_0: &MI256) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MI256) -> bool
This method tests for !=
.
impl Debug for MI256
[src]
impl Copy for MI256
[src]
impl Clone for MI256
[src]
fn clone(&self) -> MI256
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for MI256
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
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
This method returns an Ordering
between self
and other
. Read more
impl PartialOrd for MI256
[src]
fn partial_cmp(&self, other: &MI256) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
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
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
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
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
The method for the /
operator