pub enum CompilerOptimizationLevel {
O0,
O1,
O2,
O3,
Os,
Oz,
}
Expand description
Parses in-memory bytes as either the WebAssembly Text format, or a binary WebAssembly module Defines WasmEdge AOT compiler optimization level.
Variants§
O0
Disable as many optimizations as possible.
O1
Optimize quickly without destroying debuggability.
O2
Optimize for fast execution as much as possible without triggering significant incremental compile time or code size growth.
O3
Optimize for fast execution as much as possible.
Os
Optimize for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns.
Oz
Optimize for small code size as much as possible.
Trait Implementations§
§impl Clone for CompilerOptimizationLevel
impl Clone for CompilerOptimizationLevel
§fn clone(&self) -> CompilerOptimizationLevel
fn clone(&self) -> CompilerOptimizationLevel
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 more§impl Debug for CompilerOptimizationLevel
impl Debug for CompilerOptimizationLevel
§impl From<i32> for CompilerOptimizationLevel
impl From<i32> for CompilerOptimizationLevel
§fn from(val: i32) -> CompilerOptimizationLevel
fn from(val: i32) -> CompilerOptimizationLevel
Converts to this type from the input type.
§impl From<u32> for CompilerOptimizationLevel
impl From<u32> for CompilerOptimizationLevel
§fn from(val: u32) -> CompilerOptimizationLevel
fn from(val: u32) -> CompilerOptimizationLevel
Converts to this type from the input type.
§impl PartialEq<CompilerOptimizationLevel> for CompilerOptimizationLevel
impl PartialEq<CompilerOptimizationLevel> for CompilerOptimizationLevel
§fn eq(&self, other: &CompilerOptimizationLevel) -> bool
fn eq(&self, other: &CompilerOptimizationLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.