pub enum OptLevel {
None,
Less,
Default,
Aggressive,
Size,
SizeMin,
}Expand description
Optimization level for code generation.
Variants§
None
No optimizations (fastest compilation).
Less
Basic optimizations.
Default
Standard optimizations (default).
Aggressive
Aggressive optimizations.
Size
Size-optimized output.
SizeMin
Aggressively size-optimized output.
Trait Implementations§
impl Copy for OptLevel
Source§impl<'de> Deserialize<'de> for OptLevel
impl<'de> Deserialize<'de> for OptLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OptLevel
impl StructuralPartialEq for OptLevel
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