#[repr(u8)]pub enum WasmTarget {
Wasm32 = 0,
WasiP1 = 1,
WasiP2 = 2,
Browser = 3,
BareTile = 4,
}Expand description
Target platform hint for the WASM module.
Variants§
Wasm32 = 0
Generic wasm32 (runs on any compliant runtime).
WasiP1 = 1
WASI Preview 1 (requires WASI syscalls).
WasiP2 = 2
WASI Preview 2 (component model).
Browser = 3
Browser-optimized (expects Web APIs via imports).
BareTile = 4
Bare-metal tile (no imports beyond host-tile protocol).
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 · 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 Hash for WasmTarget
impl Hash for WasmTarget
Source§impl PartialEq for WasmTarget
impl PartialEq for WasmTarget
Source§impl TryFrom<u8> for WasmTarget
impl TryFrom<u8> 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