Enum postscript::type2::primitive::Number [] [src]

pub enum Number {
    Integer(i32),
    Real(f32),
}

A number.

Variants

Integer(i32)

An integer number.

Real(f32)

A real number.

Trait Implementations

impl PartialEq for Number
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Debug for Number
[src]

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

Formats the value using the given formatter.

impl Copy for Number
[src]

impl Clone for Number
[src]

fn clone(&self) -> Number

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 PartialOrd for Number
[src]

fn partial_cmp(&self, that: &Self) -> 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 Add for Number
[src]

type Output = Self

The resulting type after applying the + operator

fn add(self, that: Self) -> Self::Output

The method for the + operator

impl Div for Number
[src]

type Output = Self

The resulting type after applying the / operator

fn div(self, that: Self) -> Self::Output

The method for the / operator

impl Mul for Number
[src]

type Output = Self

The resulting type after applying the * operator

fn mul(self, that: Self) -> Self::Output

The method for the * operator

impl Neg for Number
[src]

type Output = Self

The resulting type after applying the - operator

fn neg(self) -> Self::Output

The method for the unary - operator

impl Sub for Number
[src]

type Output = Self

The resulting type after applying the - operator

fn sub(self, that: Self) -> Self::Output

The method for the - operator

impl Value for Number
[src]

fn read<T: Tape>(tape: &mut T) -> Result<Self>

Read a value.