Struct wasmer_runtime_near::Table [−][src]
pub struct Table { /* fields omitted */ }
Expand description
Container with a descriptor and a reference to a table storage.
Implementations
Create a new Table
from a TableDescriptor
Usage:
let descriptor = TableDescriptor { element: ElementType::Anyfunc, minimum: 10, maximum: None, }; let table = Table::new(descriptor)?;
Get the TableDescriptor
used to create this Table
.
pub fn set<T>(&self, index: u32, element: T) -> Result<(), TableAccessError> where
T: StorableInTable,
pub fn set<T>(&self, index: u32, element: T) -> Result<(), TableAccessError> where
T: StorableInTable,
Set the element at index.
Get a mutable pointer to underlying table storage.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Table
impl UnwindSafe for Table
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self