pub enum Rounding {
Nearest,
TowardZero,
TowardPlusInf,
TowardMinusInf,
}Expand description
The rounding mode from FCSR.RM (UM §7.2.4).
Variants§
Nearest
Round to nearest, ties to even. The IEEE default and FCSR.RM = 0.
TowardZero
Toward zero (truncate).
TowardPlusInf
Toward +∞.
TowardMinusInf
Toward −∞.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rounding
impl<'de> Deserialize<'de> for Rounding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Rounding
impl Eq for Rounding
impl StructuralPartialEq for Rounding
Auto Trait Implementations§
impl Freeze for Rounding
impl RefUnwindSafe for Rounding
impl Send for Rounding
impl Sync for Rounding
impl Unpin for Rounding
impl UnsafeUnpin for Rounding
impl UnwindSafe for Rounding
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