#[repr(isize)]pub enum MathMode {
Safe = 0,
Relaxed = 1,
Fast = 2,
}Expand description
An enum to indicate if the compiler can perform optimizations for floating-point arithmetic that may violate the IEEE 754 standard
Variants§
Safe = 0
Disables unsafe floating-point optimizations
Relaxed = 1
Allows aggressive, unsafe floating-point optimizations but preserves infs and nans
Fast = 2
Allows aggressive, unsafe floating-point optimizations
Trait Implementations§
impl Copy for MathMode
impl Eq for MathMode
impl StructuralPartialEq for MathMode
Auto Trait Implementations§
impl Freeze for MathMode
impl RefUnwindSafe for MathMode
impl Send for MathMode
impl Sync for MathMode
impl Unpin for MathMode
impl UnsafeUnpin for MathMode
impl UnwindSafe for MathMode
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