Enum wasmi::ExternVal [−][src]
An external value is the runtime representation of an entity that can be imported or exported.
Variants
Func(FuncRef)
Table(TableRef)
Memory(MemoryRef)
Global(GlobalRef)
Should be immutable.
Methods
impl ExternVal
[src]
impl ExternVal
pub fn as_func(&self) -> Option<&FuncRef>
[src]
pub fn as_func(&self) -> Option<&FuncRef>
Get underlying function reference if this ExternVal
contains
a function, or None
if it is some other kind.
pub fn as_table(&self) -> Option<&TableRef>
[src]
pub fn as_table(&self) -> Option<&TableRef>
Get underlying table reference if this ExternVal
contains
a table, or None
if it is some other kind.
pub fn as_memory(&self) -> Option<&MemoryRef>
[src]
pub fn as_memory(&self) -> Option<&MemoryRef>
Get underlying memory reference if this ExternVal
contains
a memory, or None
if it is some other kind.
pub fn as_global(&self) -> Option<&GlobalRef>
[src]
pub fn as_global(&self) -> Option<&GlobalRef>
Get underlying global variable reference if this ExternVal
contains
a global, or None
if it is some other kind.
Trait Implementations
impl Clone for ExternVal
[src]
impl Clone for ExternVal
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ExternVal
[src]
impl Debug for ExternVal