pub enum Round {
Nearest = 0,
Negative = 1,
Positive = 2,
Zero = 3,
}
Expand description
IEEE 754 rounding mode, excluding the optional roundTiesToAway
version of nearest.
Integer representation comes from what CORE-MATH uses for indexing.
Variants§
Nearest = 0
IEEE 754 nearest, roundTiesToEven
.
Negative = 1
IEEE 754 roundTowardNegative
.
Positive = 2
IEEE 754 roundTowardPositive
.
Zero = 3
IEEE 754 roundTowardZero
.
Trait Implementations§
impl Copy for Round
impl StructuralPartialEq for Round
Auto Trait Implementations§
impl Freeze for Round
impl RefUnwindSafe for Round
impl Send for Round
impl Sync for Round
impl Unpin for Round
impl UnwindSafe for Round
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