pub struct Table { /* private fields */ }
Expand description
A WASM table.
This type wraps a WebAssembly.Table
from the JavaScript API.
Trait Implementations§
Source§impl WasmTable<Engine> for Table
impl WasmTable<Engine> for Table
Source§fn ty(&self, _ctx: impl AsContext<Engine>) -> TableType
fn ty(&self, _ctx: impl AsContext<Engine>) -> TableType
Returns the type and limits of the table.
Source§fn grow(
&self,
_ctx: impl AsContextMut<Engine>,
delta: u32,
init: Value<Engine>,
) -> Result<u32>
fn grow( &self, _ctx: impl AsContextMut<Engine>, delta: u32, init: Value<Engine>, ) -> Result<u32>
Grows the table by the given amount of elements.
Source§fn get(
&self,
_ctx: impl AsContextMut<Engine>,
index: u32,
) -> Option<Value<Engine>>
fn get( &self, _ctx: impl AsContextMut<Engine>, index: u32, ) -> Option<Value<Engine>>
Returns the table element value at index
.
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