pub enum OptimizationLevel {
None,
Less,
Default,
Aggressive,
}
Expand description
Optimization level.
Variants§
None
No optimizations.
Less
Less optimizations.
Default
Default optimizations.
Aggressive
Aggressive optimizations.
Trait Implementations§
Source§impl Clone for OptimizationLevel
impl Clone for OptimizationLevel
Source§fn clone(&self) -> OptimizationLevel
fn clone(&self) -> OptimizationLevel
Returns a copy 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 OptimizationLevel
impl Debug for OptimizationLevel
Source§impl FromStr for OptimizationLevel
impl FromStr for OptimizationLevel
Source§impl Hash for OptimizationLevel
impl Hash for OptimizationLevel
Source§impl Ord for OptimizationLevel
impl Ord for OptimizationLevel
Source§fn cmp(&self, other: &OptimizationLevel) -> Ordering
fn cmp(&self, other: &OptimizationLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OptimizationLevel
impl PartialEq for OptimizationLevel
Source§impl PartialOrd for OptimizationLevel
impl PartialOrd for OptimizationLevel
impl Copy for OptimizationLevel
impl Eq for OptimizationLevel
impl StructuralPartialEq for OptimizationLevel
Auto Trait Implementations§
impl Freeze for OptimizationLevel
impl RefUnwindSafe for OptimizationLevel
impl Send for OptimizationLevel
impl Sync for OptimizationLevel
impl Unpin for OptimizationLevel
impl UnwindSafe for OptimizationLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
None
: 0 bytesLess
: 0 bytesDefault
: 0 bytesAggressive
: 0 bytes