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 Neg for Sign

type Output = Sign

fn neg(self) -> Sign

impl Mul<Sign> for Sign

type Output = Sign

fn mul(self, other: Sign) -> Sign

Derived Implementations

impl Hash for Sign

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Debug for Sign

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Sign

fn clone(&self) -> Sign

fn clone_from(&mut self, source: &Self)

impl Copy for Sign

impl Ord for Sign

fn cmp(&self, __arg_0: &Sign) -> Ordering

impl Eq for Sign

impl PartialOrd for Sign

fn partial_cmp(&self, __arg_0: &Sign) -> Option<Ordering>

fn lt(&self, __arg_0: &Sign) -> bool

fn le(&self, __arg_0: &Sign) -> bool

fn gt(&self, __arg_0: &Sign) -> bool

fn ge(&self, __arg_0: &Sign) -> bool

impl PartialEq for Sign

fn eq(&self, __arg_0: &Sign) -> bool

fn ne(&self, __arg_0: &Sign) -> bool

impl Decodable for Sign

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Sign, __D::Error>

impl Encodable for Sign

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>