Enum wasm_opt::OptimizeLevel
source · 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 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 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
source§impl PartialEq for OptimizeLevel
impl PartialEq for OptimizeLevel
source§fn eq(&self, other: &OptimizeLevel) -> bool
fn eq(&self, other: &OptimizeLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OptimizeLevel
impl Eq for OptimizeLevel
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 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