Enum num::bigint::Sign [−][src]
pub enum Sign { Minus, NoSign, Plus, }
A Sign is a BigInt
's composing element.
Variants
Minus
NoSign
Plus
Trait Implementations
impl Mul<Sign> for Sign
[src]
impl Mul<Sign> for Sign
type Output = Sign
The resulting type after applying the *
operator.
fn mul(self, other: Sign) -> Sign
[src]
fn mul(self, other: Sign) -> Sign
Performs the *
operation.
impl Neg for Sign
[src]
impl Neg for Sign
type Output = Sign
The resulting type after applying the -
operator.
fn neg(self) -> Sign
[src]
fn neg(self) -> Sign
Negate Sign value.
impl PartialEq<Sign> for Sign
[src]
impl PartialEq<Sign> for Sign
fn eq(&self, other: &Sign) -> bool
[src]
fn eq(&self, other: &Sign) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Clone for Sign
[src]
impl Clone for Sign
fn clone(&self) -> Sign
[src]
fn clone(&self) -> Sign
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Ord for Sign
[src]
impl Ord for Sign
fn cmp(&self, other: &Sign) -> Ordering
[src]
fn cmp(&self, other: &Sign) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Debug for Sign
[src]
impl Debug for Sign
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Eq for Sign
[src]
impl Eq for Sign
impl PartialOrd<Sign> for Sign
[src]
impl PartialOrd<Sign> for Sign
fn partial_cmp(&self, other: &Sign) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Sign) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Encodable for Sign
[src]
impl Encodable for Sign
fn encode<__S>(&self, s: &mut __S) -> Result<(), <__S as Encoder>::Error> where
__S: Encoder,
[src]
fn encode<__S>(&self, s: &mut __S) -> Result<(), <__S as Encoder>::Error> where
__S: Encoder,
Serialize a value using an Encoder
.
impl Copy for Sign
[src]
impl Copy for Sign
impl Hash for Sign
[src]
impl Hash for Sign
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Decodable for Sign
[src]
impl Decodable for Sign