pub enum ExternalInstanceType {
Func(FuncType),
Table(TableType),
Memory(MemoryType),
Global(GlobalType),
}
Expand description
Parses in-memory bytes as either the WebAssembly Text format, or a binary WebAssembly module Defines the type of external WasmEdge instances.
Variants§
Func(FuncType)
A WasmEdge instance that is a WasmEdge Func.
Table(TableType)
A WasmEdge instance that is a WasmEdge Table.
Memory(MemoryType)
A WasmEdge instance that is a WasmEdge Memory.
Global(GlobalType)
A WasmEdge instance that is a WasmEdge Global.
Trait Implementations§
§impl Clone for ExternalInstanceType
impl Clone for ExternalInstanceType
§fn clone(&self) -> ExternalInstanceType
fn clone(&self) -> ExternalInstanceType
Returns a copy 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 more§impl Debug for ExternalInstanceType
impl Debug for ExternalInstanceType
§impl Display for ExternalInstanceType
impl Display for ExternalInstanceType
§impl From<i32> for ExternalInstanceType
impl From<i32> for ExternalInstanceType
§fn from(value: i32) -> ExternalInstanceType
fn from(value: i32) -> ExternalInstanceType
Converts to this type from the input type.
§impl From<u32> for ExternalInstanceType
impl From<u32> for ExternalInstanceType
§fn from(value: u32) -> ExternalInstanceType
fn from(value: u32) -> ExternalInstanceType
Converts to this type from the input type.
§impl PartialEq<ExternalInstanceType> for ExternalInstanceType
impl PartialEq<ExternalInstanceType> for ExternalInstanceType
§fn eq(&self, other: &ExternalInstanceType) -> bool
fn eq(&self, other: &ExternalInstanceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.