pub enum WasmFeature {
Simd,
Threads,
ReferenceTypes,
BulkMemory,
TailCalls,
Exceptions,
Gc,
Memory64,
MultiValue,
ComponentModel,
}Expand description
Common WebAssembly feature flags.
Variants§
Simd
SIMD instructions.
Threads
Threading primitives.
ReferenceTypes
Reference types.
BulkMemory
Bulk memory operations.
TailCalls
Tail calls.
Exceptions
Exception handling.
Gc
Garbage collection proposal family.
Memory64
64-bit memory indexes.
MultiValue
Multiple return values.
ComponentModel
Component Model support.
Implementations§
Trait Implementations§
Source§impl Clone for WasmFeature
impl Clone for WasmFeature
Source§fn clone(&self) -> WasmFeature
fn clone(&self) -> WasmFeature
Returns a duplicate 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 moreSource§impl Debug for WasmFeature
impl Debug for WasmFeature
Source§impl Default for WasmFeature
impl Default for WasmFeature
Source§fn default() -> WasmFeature
fn default() -> WasmFeature
Returns the “default value” for a type. Read more
Source§impl Display for WasmFeature
impl Display for WasmFeature
Source§impl FromStr for WasmFeature
impl FromStr for WasmFeature
Source§impl Hash for WasmFeature
impl Hash for WasmFeature
Source§impl Ord for WasmFeature
impl Ord for WasmFeature
Source§fn cmp(&self, other: &WasmFeature) -> Ordering
fn cmp(&self, other: &WasmFeature) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WasmFeature
impl PartialEq for WasmFeature
Source§impl PartialOrd for WasmFeature
impl PartialOrd for WasmFeature
impl Copy for WasmFeature
impl Eq for WasmFeature
impl StructuralPartialEq for WasmFeature
Auto Trait Implementations§
impl Freeze for WasmFeature
impl RefUnwindSafe for WasmFeature
impl Send for WasmFeature
impl Sync for WasmFeature
impl Unpin for WasmFeature
impl UnsafeUnpin for WasmFeature
impl UnwindSafe for WasmFeature
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