pub enum RoundingMode {
NearestEven = 0,
Downward = 1,
Upward = 2,
TowardZero = 3,
NearestAway = 4,
}Expand description
Rounding mode.
Variants§
NearestEven = 0
Rounding towards nearest representable value.
Downward = 1
Rounding towards negative infinity.
Upward = 2
Rounding towards positive infinity.
TowardZero = 3
Rounding towards zero.
NearestAway = 4
Rounding towards the nearest value, breaks ties by rounding away from zero.
Trait Implementations§
Source§impl Clone for RoundingMode
impl Clone for RoundingMode
Source§fn clone(&self) -> RoundingMode
fn clone(&self) -> RoundingMode
Returns a duplicate 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 From<u32> for RoundingMode
impl From<u32> for RoundingMode
Source§impl PartialEq for RoundingMode
impl PartialEq for RoundingMode
impl Copy for RoundingMode
impl StructuralPartialEq for RoundingMode
Auto Trait Implementations§
impl Freeze for RoundingMode
impl RefUnwindSafe for RoundingMode
impl Send for RoundingMode
impl Sync for RoundingMode
impl Unpin for RoundingMode
impl UnwindSafe for RoundingMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more