pub enum Feature {
Show 20 variants
None,
Atomics,
MutableGlobals,
TruncSat,
Simd,
BulkMemory,
SignExt,
ExceptionHandling,
TailCall,
ReferenceTypes,
Multivalue,
Gc,
Memory64,
RelaxedSimd,
ExtendedConst,
Strings,
MultiMemory,
Mvp,
Default,
All,
}
Expand description
Optional wasm features.
The Feature::Mvp
feature represents the original spec.
Other features are post-MVP,
some specified and implemented in all engines,
some specified but not implemented, some experimental.
See the WebAssembly roadmap for an indication of which features can be used where.
Variants§
None
None.
Atomics
Atomics.
MutableGlobals
Import and export of mutable globals.
TruncSat
Simd
Fixed-width SIMD.
BulkMemory
Bulk memory operations.
SignExt
Sign extension operations.
ExceptionHandling
Exception handling.
TailCall
Tail calls.
ReferenceTypes
Reference types.
Multivalue
Multi-value.
Gc
Memory64
Large memory.
RelaxedSimd
Relaxed SIMD.
ExtendedConst
Extended constant expressions.
Strings
MultiMemory
Multiple memory.
Mvp
The original WebAssembly specification.
It has the same value as None
.
Default
The default feature set.
Includes Feature::SignExt
and Feature::MutableGlobals
.
All
All features.
Trait Implementations§
source§impl PartialEq for Feature
impl PartialEq for Feature
impl Copy for Feature
impl Eq for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
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