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 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 ShrinkLevel
Source§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
impl Eq for ShrinkLevel
Source§impl PartialEq for ShrinkLevel
impl PartialEq for ShrinkLevel
Source§fn eq(&self, other: &ShrinkLevel) -> bool
fn eq(&self, other: &ShrinkLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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