#[repr(u8)]pub enum RoundControl {
Rn = 1,
Rd = 3,
Ru = 5,
Rz = 7,
Mxcsr = 0,
Sae = 6,
}Expand description
Do not depend on the actual enum values.
Variants§
Rn = 1
Round to nearest (even)
Rd = 3
Round down
Ru = 5
Round up
Rz = 7
Round to zero (truncate)
Mxcsr = 0
Rounding mode as specified in MXCSR
Sae = 6
Rounding mode irrelevant, but SAE
Trait Implementations§
Source§impl Clone for RoundControl
impl Clone for RoundControl
Source§fn clone(&self) -> RoundControl
fn clone(&self) -> RoundControl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoundControl
impl Debug for RoundControl
Source§impl PartialEq for RoundControl
impl PartialEq for RoundControl
Source§impl TryFrom<u8> for RoundControl
impl TryFrom<u8> for RoundControl
impl Copy for RoundControl
impl Eq for RoundControl
impl StructuralPartialEq for RoundControl
Auto Trait Implementations§
impl Freeze for RoundControl
impl RefUnwindSafe for RoundControl
impl Send for RoundControl
impl Sync for RoundControl
impl Unpin for RoundControl
impl UnwindSafe for RoundControl
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