Enum wasm_opt::ShrinkLevel
source · pub enum ShrinkLevel {
Level0 = 0,
Level1 = 1,
Level2 = 2,
}
Expand description
The amount of effort to put into reducing module size.
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 ShrinkLevel
impl Clone for ShrinkLevel
source§fn clone(&self) -> ShrinkLevel
fn clone(&self) -> ShrinkLevel
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 ShrinkLevel
impl Debug for ShrinkLevel
source§impl Default for ShrinkLevel
impl Default for ShrinkLevel
source§fn default() -> ShrinkLevel
fn default() -> ShrinkLevel
Returns the “default value” for a type. Read more
source§impl PartialEq for ShrinkLevel
impl PartialEq for ShrinkLevel
source§fn eq(&self, other: &ShrinkLevel) -> bool
fn eq(&self, other: &ShrinkLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ShrinkLevel
impl Eq for ShrinkLevel
impl StructuralPartialEq for ShrinkLevel
Auto Trait Implementations§
impl Freeze for ShrinkLevel
impl RefUnwindSafe for ShrinkLevel
impl Send for ShrinkLevel
impl Sync for ShrinkLevel
impl Unpin for ShrinkLevel
impl UnwindSafe for ShrinkLevel
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