Enum num_bigfloat::RoundingMode
source · [−]pub enum RoundingMode {
Up,
Down,
ToZero,
FromZero,
ToEven,
ToOdd,
}Expand description
Possible errors.
Variants
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
sourceimpl Clone for RoundingMode
impl Clone for RoundingMode
sourcefn clone(&self) -> RoundingMode
fn clone(&self) -> RoundingMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RoundingMode
impl Debug for RoundingMode
sourceimpl PartialEq<RoundingMode> for RoundingMode
impl PartialEq<RoundingMode> for RoundingMode
impl Copy for RoundingMode
impl Eq for RoundingMode
impl StructuralEq for RoundingMode
impl StructuralPartialEq for RoundingMode
Auto Trait Implementations
impl RefUnwindSafe for RoundingMode
impl Send for RoundingMode
impl Sync for RoundingMode
impl Unpin for RoundingMode
impl UnwindSafe for RoundingMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more