Struct wasm_runtime_layer::Table
source · pub struct Table { /* private fields */ }
Expand description
A Wasm table reference.
Implementations§
source§impl Table
impl Table
sourcepub fn new<C: AsContextMut>(ctx: C, ty: TableType, init: Value) -> Result<Self>
pub fn new<C: AsContextMut>(ctx: C, ty: TableType, init: Value) -> Result<Self>
Creates a new table to the store.
sourcepub fn grow<C: AsContextMut>(
&self,
ctx: C,
delta: u32,
init: Value
) -> Result<u32>
pub fn grow<C: AsContextMut>( &self, ctx: C, delta: u32, init: Value ) -> Result<u32>
Grows the table by the given amount of elements.
Returns the old size of the Table
upon success.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Table
impl !RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl !UnwindSafe for Table
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more