Enum frounding::RoundingMode [] [src]

pub enum RoundingMode {
    Default,
    Upward,
    Downward,
    Nearest,
    ToZero,
}

Rounding direction

Variants

Default

The default rounding when starting the program.

Upward

Round upward ( toward positive infinity +inf )

Downward

Round downward ( toward negative infinity -inf )

Nearest

Round to nearest

ToZero

Round tward zero ( truncate )

Trait Implementations

impl Copy for RoundingMode
[src]

impl Clone for RoundingMode
[src]

fn clone(&self) -> RoundingMode

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 Debug for RoundingMode
[src]

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

Formats the value using the given formatter.

impl Display for RoundingMode
[src]

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

Formats the value using the given formatter.