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
sourceimpl 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 StructuralEq for RMode
impl StructuralPartialEq for RMode
Auto Trait Implementations
impl RefUnwindSafe for RMode
impl Send for RMode
impl Sync for RMode
impl Unpin for RMode
impl UnwindSafe for RMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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