Enum wasmi::ExternVal[][src]

pub enum ExternVal {
    Func(FuncRef),
    Table(TableRef),
    Memory(MemoryRef),
    Global(GlobalRef),
}

An external value is the runtime representation of an entity that can be imported or exported.

Variants

Global.

Should be immutable.

Methods

impl ExternVal
[src]

Get underlying function reference if this ExternVal contains a function, or None if it is some other kind.

Get underlying table reference if this ExternVal contains a table, or None if it is some other kind.

Get underlying memory reference if this ExternVal contains a memory, or None if it is some other kind.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ExternVal
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for ExternVal

impl !Sync for ExternVal