Enum astro_float_num::RoundingMode
source · pub enum RoundingMode {
None,
Up,
Down,
ToZero,
FromZero,
ToEven,
ToOdd,
}
Expand description
Rounding modes.
Variants§
None
Skip rounding operation.
Up
Round half toward positive infinity.
Down
Round half toward negative infinity.
ToZero
Round half toward zero.
FromZero
Round half away from zero.
ToEven
Round half to even.
ToOdd
Round half to odd.
Trait Implementations§
source§impl Clone for RoundingMode
impl Clone for RoundingMode
source§fn clone(&self) -> RoundingMode
fn clone(&self) -> RoundingMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RoundingMode
impl Debug for RoundingMode
source§impl PartialEq<RoundingMode> for RoundingMode
impl PartialEq<RoundingMode> for RoundingMode
source§fn eq(&self, other: &RoundingMode) -> bool
fn eq(&self, other: &RoundingMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.