Struct pyodide_webassembly_runtime_layer::Table
source · 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