pub enum RMode {
Nearest,
PlusInfinity,
MinusInfinity,
Zero,
}
Expand description
Rounding mode
Variants§
Nearest
Round to Nearest (RN) mode. This is the reset value.
PlusInfinity
Round towards Plus Infinity (RP) mode.
MinusInfinity
Round towards Minus Infinity (RM) mode.
Zero
Round towards Zero (RZ) mode.
Implementations§
Source§impl RMode
impl RMode
Sourcepub fn is_nearest(self) -> bool
pub fn is_nearest(self) -> bool
Is Nearest the current rounding mode?
Sourcepub fn is_plus_infinity(self) -> bool
pub fn is_plus_infinity(self) -> bool
Is Plus Infinity the current rounding mode?
Sourcepub fn is_minus_infinity(self) -> bool
pub fn is_minus_infinity(self) -> bool
Is Minus Infinity the current rounding mode?
Trait Implementations§
impl Copy for RMode
impl Eq for RMode
impl StructuralPartialEq for RMode
Auto Trait Implementations§
impl Freeze for RMode
impl RefUnwindSafe for RMode
impl Send for RMode
impl Sync for RMode
impl Unpin for RMode
impl UnwindSafe for RMode
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