Struct nyar_wasm::WasmVariable
source · pub struct WasmVariable {
pub symbol: WasmSymbol,
pub mutable: bool,
pub export: WasmExportName,
pub type: WasmType,
pub value: WasmValue,
pub span: FileSpan,
}Fields§
§symbol: WasmSymbol§mutable: bool§export: WasmExportName§type: WasmType§value: WasmValue§span: FileSpanImplementations§
source§impl WasmVariable
impl WasmVariable
pub fn i64<S: Into<WasmSymbol>>(name: S, value: i64) -> Self
pub fn f32<S: Into<WasmSymbol>>(name: S, value: f32) -> Self
pub fn f64<S: Into<WasmSymbol>>(name: S, value: f64) -> Self
pub fn function(name: WasmSymbol) -> Self
pub fn with_export(self, export: bool) -> Self
pub fn with_mutable(self) -> Self
pub fn with_immutable(self) -> Self
Trait Implementations§
source§impl Default for WasmVariable
impl Default for WasmVariable
source§impl<'a, 'i> IntoWasm<'a, Expression<'i>> for WasmVariablewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, Expression<'i>> for WasmVariablewhere
'a: 'i,
fn as_wast(&'a self) -> Expression<'i>
Auto Trait Implementations§
impl RefUnwindSafe for WasmVariable
impl Send for WasmVariable
impl Sync for WasmVariable
impl Unpin for WasmVariable
impl UnwindSafe for WasmVariable
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