pub enum WasmStandard {
Wasm1,
Wasm2,
Wasm3,
}Expand description
Defines the WebAssembly standard versions.
A standard selects the preset of WebAssembly proposals that belong to that version of the specification. Applying a standard to a configuration resets the enabled proposals to exactly that preset.
Variants§
Wasm1
WebAssembly 1.0: the MVP plus the ImportExportMutGlobals proposal.
Wasm2
WebAssembly 2.0: WASM 1.0 plus the NonTrapFloatToIntConversions,
SignExtensionOperators, MultiValue, BulkMemoryOperations,
ReferenceTypes, and SIMD proposals.
Wasm3
WebAssembly 3.0: WASM 2.0 plus the TailCall, ExtendedConst,
FunctionReferences, GC, MultiMemories, RelaxSIMD,
ExceptionHandling, and Memory64 proposals.
Trait Implementations§
Source§impl Clone for WasmStandard
impl Clone for WasmStandard
impl Copy for WasmStandard
Source§impl Debug for WasmStandard
impl Debug for WasmStandard
impl Eq for WasmStandard
Source§impl From<WasmStandard> for u32
impl From<WasmStandard> for u32
Source§fn from(val: WasmStandard) -> u32
fn from(val: WasmStandard) -> u32
Converts to this type from the input type.
Source§impl From<WasmStandard> for i32
impl From<WasmStandard> for i32
Source§fn from(val: WasmStandard) -> i32
fn from(val: WasmStandard) -> i32
Converts to this type from the input type.
Source§impl From<i32> for WasmStandard
impl From<i32> for WasmStandard
Source§fn from(val: i32) -> WasmStandard
fn from(val: i32) -> WasmStandard
Converts to this type from the input type.
Source§impl From<u32> for WasmStandard
impl From<u32> for WasmStandard
Source§fn from(val: u32) -> WasmStandard
fn from(val: u32) -> WasmStandard
Converts to this type from the input type.
Source§impl PartialEq for WasmStandard
impl PartialEq for WasmStandard
impl StructuralPartialEq for WasmStandard
Auto Trait Implementations§
impl Freeze for WasmStandard
impl RefUnwindSafe for WasmStandard
impl Send for WasmStandard
impl Sync for WasmStandard
impl Unpin for WasmStandard
impl UnsafeUnpin for WasmStandard
impl UnwindSafe for WasmStandard
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