pub enum WasmTarget {
Wasm32UnknownUnknown,
Wasm32WasiP1,
Wasm32WasiP1Threads,
Wasm32WasiP2,
Wasm32V1None,
}Expand description
Common Rust WebAssembly compilation targets.
Variants§
Wasm32UnknownUnknown
‘wasm32-unknown-unknown’.
Wasm32WasiP1
‘wasm32-wasip1’.
Wasm32WasiP1Threads
‘wasm32-wasip1-threads’.
Wasm32WasiP2
‘wasm32-wasip2’.
Wasm32V1None
‘wasm32v1-none’.
Implementations§
Source§impl WasmTarget
impl WasmTarget
Sourcepub const fn pointer_width(self) -> u8
pub const fn pointer_width(self) -> u8
Returns the pointer width in bits.
Sourcepub const fn profile(self) -> WasmTargetProfile
pub const fn profile(self) -> WasmTargetProfile
Returns the ABI or profile label.
Sourcepub const fn supports_threads(self) -> bool
pub const fn supports_threads(self) -> bool
Returns ‘true’ when the target label explicitly includes thread support.
Trait Implementations§
Source§impl Clone for WasmTarget
impl Clone for WasmTarget
Source§fn clone(&self) -> WasmTarget
fn clone(&self) -> WasmTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WasmTarget
impl Debug for WasmTarget
Source§impl Default for WasmTarget
impl Default for WasmTarget
Source§fn default() -> WasmTarget
fn default() -> WasmTarget
Returns the “default value” for a type. Read more
Source§impl Display for WasmTarget
impl Display for WasmTarget
Source§impl FromStr for WasmTarget
impl FromStr for WasmTarget
Source§impl Hash for WasmTarget
impl Hash for WasmTarget
Source§impl Ord for WasmTarget
impl Ord for WasmTarget
Source§fn cmp(&self, other: &WasmTarget) -> Ordering
fn cmp(&self, other: &WasmTarget) -> Ordering
1.21.0 (const: unstable) · 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 WasmTarget
impl PartialEq for WasmTarget
Source§fn eq(&self, other: &WasmTarget) -> bool
fn eq(&self, other: &WasmTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WasmTarget
impl PartialOrd for WasmTarget
impl Copy for WasmTarget
impl Eq for WasmTarget
impl StructuralPartialEq for WasmTarget
Auto Trait Implementations§
impl Freeze for WasmTarget
impl RefUnwindSafe for WasmTarget
impl Send for WasmTarget
impl Sync for WasmTarget
impl Unpin for WasmTarget
impl UnsafeUnpin for WasmTarget
impl UnwindSafe for WasmTarget
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