Enum wasmer_near::Extern [−][src]
Expand description
An Extern
is the runtime representation of an entity that
can be imported or exported.
Spec: https://webassembly.github.io/spec/core/exec/runtime.html#external-values
Variants
Function(Function)
A external Function
.
Tuple Fields of Function
0: Function
Global(Global)
A external Global
.
Tuple Fields of Global
0: Global
Table(Table)
A external Table
.
Tuple Fields of Table
0: Table
Memory(Memory)
A external Memory
.
Tuple Fields of Memory
0: Memory
Implementations
Return the underlying type of the inner Extern
.
Create an Extern
from an wasmer_engine::Export
.
Trait Implementations
Convert the extern internally to hold a weak reference to the InstanceRef
.
This is useful for preventing cycles, for example for data stored in a
type implementing WasmerEnv
. Read more
Returns the size of the referenced value in bytes. Read more
Return true if the object Store
is the same as the provided Store
.
Auto Trait Implementations
impl !RefUnwindSafe for Extern
impl !UnwindSafe for Extern
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more