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.

MDN documentation

Implementations

impl Table

fn new(table_descriptor: &Object) -> Result<Table, JsValue>

The WebAssembly.Table() constructor creates a new Table object of the given size and element type.

MDN documentation

impl Table

fn get(&self, index: u32) -> Result<Function, JsValue>

The get() prototype method of the WebAssembly.Table() object retrieves a function reference stored at a given index.

MDN documentation

impl Table

fn grow_with_value(&self, additional_capacity: u32, value: JsValue) -> Result<u32, JsValue>

The grow() prototype method of the WebAssembly.Table object increases the size of the Table instance by a specified number of elements.

MDN documentation

impl Table

fn new_with_value(table_descriptor: &Object, value: JsValue) -> Result<Table, JsValue>

The WebAssembly.Table() constructor creates a new Table object of the given size and element type.

MDN documentation

impl Table

fn get_raw(&self, index: u32) -> Result<JsValue, JsValue>

The get() prototype method of the WebAssembly.Table() object retrieves a function reference stored at a given index.

MDN documentation

impl Table

fn set(&self, index: u32, _function: &Function) -> Result<(), JsValue>

The set() prototype method of the WebAssembly.Table object mutates a reference stored at a given index to a different value.

MDN documentation

impl Table

fn length(&self) -> u32

The length prototype property of the WebAssembly.Table object returns the length of the table, i.e. the number of elements in the table.

MDN documentation

impl Table

fn grow(&self, additional_capacity: u32) -> Result<u32, JsValue>

The grow() prototype method of the WebAssembly.Table object increases the size of the Table instance by a specified number of elements.

MDN documentation

impl Table

fn set_raw(&self, index: u32, value: &JsValue) -> Result<(), JsValue>

The set() prototype method of the WebAssembly.Table object mutates a reference stored at a given index to a different value.

MDN documentation

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) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn 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()

Auto Trait Implementations

impl Freeze for Table

impl RefUnwindSafe for Table

impl Send for Table

impl Sync for Table

impl Unpin for Table

impl UnsafeUnpin for Table

impl UnwindSafe for Table

Blanket Implementations

impl<P, T> Receiver for Table where P: Deref<Target = T> + ?Sized, T: ?Sized,

impl<S, T> Upcast<T> for Table where T: UpcastFrom<S> + ?Sized, S: ?Sized,

impl<T> Any for Table where T: 'static + ?Sized,

impl<T> Borrow<T> for Table where T: ?Sized,

impl<T> BorrowMut<T> for Table where T: ?Sized,

impl<T> CloneToUninit for Table where T: Clone,

impl<T> From<T> for Table

impl<T> JsGeneric for Table where T: ErasableGeneric<Repr = JsValue> + UpcastFrom<T> + Upcast<JsValue> + JsCast + 'static,

impl<T> ReturnWasmAbi for Table where T: IntoWasmAbi,

impl<T> ToOwned for Table where T: Clone,

impl<T> TryFromJsValue for Table where T: JsCast,

impl<T> VectorFromWasmAbi for Table where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorIntoWasmAbi for Table where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorRefIntoWasmAbi for Table where &'a T: for<'a> Into<JsValue>,

impl<T, U> Into<U> for Table where U: From<T>,

impl<T, U> TryFrom<U> for Table where U: Into<T>,

impl<T, U> TryInto<U> for Table where U: TryFrom<T>,