Struct Table
#[repr(transparent)]
pub struct Table { /* private fields */ }
The WebAssembly.Table() constructor creates a new Table object
of the given size and element type.
Implementations
impl Table
fn new(table_descriptor: &Object) -> Result<Table, JsValue>The
WebAssembly.Table()constructor creates a newTableobject of the given size and element type.
impl Table
fn get(&self, index: u32) -> Result<Function, JsValue>The
get()prototype method of theWebAssembly.Table()object retrieves a function reference stored at a given index.
impl Table
fn grow_with_value(&self, additional_capacity: u32, value: JsValue) -> Result<u32, JsValue>The
grow()prototype method of theWebAssembly.Tableobject increases the size of theTableinstance by a specified number of elements.
impl Table
fn new_with_value(table_descriptor: &Object, value: JsValue) -> Result<Table, JsValue>The
WebAssembly.Table()constructor creates a newTableobject of the given size and element type.
impl Table
fn get_raw(&self, index: u32) -> Result<JsValue, JsValue>The
get()prototype method of theWebAssembly.Table()object retrieves a function reference stored at a given index.
impl Table
fn set(&self, index: u32, _function: &Function) -> Result<(), JsValue>The
set()prototype method of theWebAssembly.Tableobject mutates a reference stored at a given index to a different value.
impl Table
fn length(&self) -> u32The length prototype property of the
WebAssembly.Tableobject returns the length of the table, i.e. the number of elements in the table.
impl Table
fn grow(&self, additional_capacity: u32) -> Result<u32, JsValue>The
grow()prototype method of theWebAssembly.Tableobject increases the size of theTableinstance by a specified number of elements.
impl Table
fn set_raw(&self, index: u32, value: &JsValue) -> Result<(), JsValue>The
set()prototype method of theWebAssembly.Tableobject mutates a reference stored at a given index to a different value.
Trait Implementations
impl AsRef<JsValue> for Table
fn as_ref(&self) -> &JsValue
impl AsRef<Object> for Table
fn as_ref(&self) -> &Object
impl AsRef<Table> for Table
fn as_ref(&self) -> &Table
impl Clone for Table
fn clone(&self) -> Self
impl Debug for Table
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Deref for Table
type Target = Object;fn deref(&self) -> &Object
impl Eq for Table
impl ErasableGeneric for Table
type Repr = JsValue;
impl From<JsValue> for Table
fn from(obj: JsValue) -> Self
impl FromWasmAbi for Table
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl IntoJsGeneric for Table
where
Table: JsGeneric,
type JsCanon = Table;fn to_js(self) -> Table
impl IntoWasmAbi for Table
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl JsCast for Table
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl LongRefFromWasmAbi for Table
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = Table;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl OptionFromWasmAbi for Table
fn is_none(abi: &Self::Abi) -> bool
impl OptionIntoWasmAbi for Table
fn none() -> Self::Abi
impl PartialEq for Table
fn eq(&self, other: &Self) -> bool
impl Promising for Table
type Resolution = Table;
impl RefFromWasmAbi for Table
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<Table>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
impl StructuralPartialEq for Table
impl UpcastFrom<Table> for Table
impl WasmDescribe for Table
fn describe()