#[non_exhaustive]pub enum RoundingMode {
Rne,
Rna,
Rtp,
Rtn,
Rtz,
}Expand description
A rounding direction (IEEE 754 §4.3), named as in SMT-LIB.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rne
To nearest, ties to even (the default everywhere).
Rna
To nearest, ties away from zero.
Rtp
Toward +∞.
Rtn
Toward −∞.
Rtz
Toward zero.
Implementations§
Source§impl RoundingMode
impl RoundingMode
Trait Implementations§
Source§impl Clone for RoundingMode
impl Clone for RoundingMode
impl Copy for RoundingMode
Source§impl Debug for RoundingMode
impl Debug for RoundingMode
impl Eq for RoundingMode
Source§impl Hash for RoundingMode
impl Hash for RoundingMode
Source§impl Ord for RoundingMode
impl Ord for RoundingMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RoundingMode
impl PartialEq for RoundingMode
Source§impl PartialOrd for RoundingMode
impl PartialOrd 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 UnsafeUnpin 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