pub enum OptimizationLevel {
None,
Basic,
Standard,
Aggressive,
}Expand description
Optimization level controlling aggressiveness of optimizations.
Variants§
None
No optimizations (O0)
Basic
Basic optimizations (O1): constant folding, simple simplifications
Standard
Standard optimizations (O2): includes algebraic laws, normal forms
Aggressive
Aggressive optimizations (O3): all transformations, multiple passes
Trait Implementations§
Source§impl Clone for OptimizationLevel
impl Clone for OptimizationLevel
Source§fn clone(&self) -> OptimizationLevel
fn clone(&self) -> OptimizationLevel
Returns a duplicate 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 Default for OptimizationLevel
impl Default for OptimizationLevel
Source§fn default() -> OptimizationLevel
fn default() -> OptimizationLevel
Returns the “default value” for a type. Read more
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