Struct wasmer_vm::LinearTable [−][src]
pub struct LinearTable { /* fields omitted */ }Expand description
A table instance.
Implementations
Create a new linear table instance with specified minimum and maximum number of elements.
This creates a LinearTable with metadata owned by a VM, pointed to by
vm_table_location: this can be used to create a local table.
pub unsafe fn from_definition(
table: &TableType,
style: &TableStyle,
vm_table_location: NonNull<VMTableDefinition>
) -> Result<Self, String>[src]
pub unsafe fn from_definition(
table: &TableType,
style: &TableStyle,
vm_table_location: NonNull<VMTableDefinition>
) -> Result<Self, String>[src]Create a new linear table instance with specified minimum and maximum number of elements.
This creates a LinearTable with metadata owned by a VM, pointed to by
vm_table_location: this can be used to create a local table.
Safety
vm_table_locationmust point to a valid location in VM memory.
Trait Implementations
Returns the size of the referenced value in bytes. Read more
Returns the style for this Table.
Grow table by the specified amount of elements.
Returns None if table can’t be grown by the specified amount
of elements, otherwise returns the previous size of the table.
Get reference to the specified element.
Returns None if the index is out of bounds.
Return a VMTableDefinition for exposing the table to compiled wasm code.
This is correct because there is no thread-specific data tied to this type.
This is correct because all internal mutability is protected by a mutex.
Auto Trait Implementations
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>::MetadataConverts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more