pub struct WasmFeatures { /* private fields */ }
Expand description
Enabled WebAssembly proposals and features.
This is the disabled zero-size version of this structure because the
features
feature was disabled at compile time of this crate.
Implementations§
Source§impl WasmFeatures
impl WasmFeatures
Sourcepub fn mutable_global(&self) -> bool
pub fn mutable_global(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn saturating_float_to_int(&self) -> bool
pub fn saturating_float_to_int(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn sign_extension(&self) -> bool
pub fn sign_extension(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn reference_types(&self) -> bool
pub fn reference_types(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn multi_value(&self) -> bool
pub fn multi_value(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn bulk_memory(&self) -> bool
pub fn bulk_memory(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn relaxed_simd(&self) -> bool
pub fn relaxed_simd(&self) -> bool
Returns whether this feature is enabled in this feature set.
Returns whether this feature is enabled in this feature set.
Sourcepub fn multi_memory(&self) -> bool
pub fn multi_memory(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn exceptions(&self) -> bool
pub fn exceptions(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn extended_const(&self) -> bool
pub fn extended_const(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn component_model(&self) -> bool
pub fn component_model(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn function_references(&self) -> bool
pub fn function_references(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn memory_control(&self) -> bool
pub fn memory_control(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn custom_page_sizes(&self) -> bool
pub fn custom_page_sizes(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn component_model_values(&self) -> bool
pub fn component_model_values(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn component_model_nested_names(&self) -> bool
pub fn component_model_nested_names(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn component_model_more_flags(&self) -> bool
pub fn component_model_more_flags(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn component_model_multiple_returns(&self) -> bool
pub fn component_model_multiple_returns(&self) -> bool
Returns whether this feature is enabled in this feature set.
Sourcepub fn legacy_exceptions(&self) -> bool
pub fn legacy_exceptions(&self) -> bool
Returns whether this feature is enabled in this feature set.
Trait Implementations§
Source§impl Clone for WasmFeatures
impl Clone for WasmFeatures
Source§fn clone(&self) -> WasmFeatures
fn clone(&self) -> WasmFeatures
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WasmFeatures
impl Debug for WasmFeatures
Source§impl Default for WasmFeatures
impl Default for WasmFeatures
Source§fn default() -> WasmFeatures
fn default() -> WasmFeatures
Source§impl Hash for WasmFeatures
impl Hash for WasmFeatures
impl Copy for WasmFeatures
Auto Trait Implementations§
impl Freeze for WasmFeatures
impl RefUnwindSafe for WasmFeatures
impl Send for WasmFeatures
impl Sync for WasmFeatures
impl Unpin for WasmFeatures
impl UnwindSafe for WasmFeatures
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more