pub enum OptimizeLevel {
Level0 = 0,
Level1 = 1,
Level2 = 2,
Level3 = 3,
Level4 = 4,
}Expand description
The amount of optimization to apply.
This is interpreted differently by different passes.
See the documentation of various OptimizationOptions
constructors for a general description of how these behave.
Variants§
Trait Implementations§
Source§impl Clone for OptimizeLevel
impl Clone for OptimizeLevel
Source§fn clone(&self) -> OptimizeLevel
fn clone(&self) -> OptimizeLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptimizeLevel
Source§impl Debug for OptimizeLevel
impl Debug for OptimizeLevel
Source§impl Default for OptimizeLevel
impl Default for OptimizeLevel
Source§fn default() -> OptimizeLevel
fn default() -> OptimizeLevel
Returns the “default value” for a type. Read more
impl Eq for OptimizeLevel
Source§impl PartialEq for OptimizeLevel
impl PartialEq for OptimizeLevel
Source§fn eq(&self, other: &OptimizeLevel) -> bool
fn eq(&self, other: &OptimizeLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptimizeLevel
Auto Trait Implementations§
impl Freeze for OptimizeLevel
impl RefUnwindSafe for OptimizeLevel
impl Send for OptimizeLevel
impl Sync for OptimizeLevel
impl Unpin for OptimizeLevel
impl UnsafeUnpin for OptimizeLevel
impl UnwindSafe for OptimizeLevel
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