pub enum OptLevel {
No,
Less,
Default,
Aggressive,
Size,
SizeMin,
}Expand description
Optimization level
Variants§
No
No optimizations. Equivalent to -O0.
Less
Less than the default optimizations. Equivalent to -O1.
Default
Default level of optimizations. Equivalent to -O2.
Aggressive
Aggressive optimizations. Equivalent to -O3.
Size
Optimize for size. Equivalent to -Os.
SizeMin
Aggressively optimize for size. Equivalent to -Oz.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OptLevel
impl RefUnwindSafe for OptLevel
impl Send for OptLevel
impl Sync for OptLevel
impl Unpin for OptLevel
impl UnsafeUnpin for OptLevel
impl UnwindSafe for OptLevel
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