pub enum WasmOpt {
Size,
SizeAggressive,
Level0,
Level1,
Level2,
Level3,
Level4,
}Expand description
Corresponds to https://docs.rs/wasm-opt/latest/wasm_opt/struct.OptimizationOptions.html#impl-OptimizationOptions.
Certain levels may not work with wasmtime/cranelift.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WasmOpt
impl<'de> Deserialize<'de> for WasmOpt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WasmOpt
impl RefUnwindSafe for WasmOpt
impl Send for WasmOpt
impl Sync for WasmOpt
impl Unpin for WasmOpt
impl UnwindSafe for WasmOpt
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