Struct wasm_opt::PassOptions
source · [−]pub struct PassOptions {
pub debug: bool,
pub validate: bool,
pub validate_globally: bool,
pub optimize_level: OptimizeLevel,
pub shrink_level: ShrinkLevel,
pub traps_never_happen: bool,
pub low_memory_unused: bool,
pub fast_math: bool,
pub zero_filled_memory: bool,
pub debug_info: bool,
}Expand description
Options that affect how optimization passes behave.
Fields
debug: boolvalidate: boolValidate both the unoptimized module and the optimized module.
Default: true.
validate_globally: booloptimize_level: OptimizeLevelThe amount of optimization to apply.
The default depends on how OptimizationOptions is constructed.
shrink_level: ShrinkLevelThe amount of effort to put into reducing module size.
The default depends on how OptimizationOptions is constructed.
traps_never_happen: boollow_memory_unused: boolfast_math: boolzero_filled_memory: booldebug_info: boolTrait Implementations
sourceimpl Clone for PassOptions
impl Clone for PassOptions
sourcefn clone(&self) -> PassOptions
fn clone(&self) -> PassOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PassOptions
impl Debug for PassOptions
sourceimpl Default for PassOptions
impl Default for PassOptions
sourcefn default() -> PassOptions
fn default() -> PassOptions
Returns the “default value” for a type. Read more
impl Copy for PassOptions
Auto Trait Implementations
impl RefUnwindSafe for PassOptions
impl Send for PassOptions
impl Sync for PassOptions
impl Unpin for PassOptions
impl UnwindSafe for PassOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more