pub struct Options {
pub fast_math: bool,
pub max_constant: usize,
pub skip: Skip,
}Expand description
The options of the optimizations.
Fields§
§fast_math: boolSimplifications that hold for finite floats but not for NaN,
infinities, or the sign of zero: x * 0 = 0, x + 0 = x, x - 0 = x.
max_constant: usizeThe largest constant (in elements) that folding creates.
skip: SkipPasses to skip, to measure what each contributes (all enabled by default).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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