[−][src]Struct substrate_wasmtime::TableType
A descriptor for a table in a WebAssembly module.
Tables are contiguous chunks of a specific element, typically a funcref
or
an anyref
. The most common use for tables is a function table through
which call_indirect
can invoke other functions.
Methods
impl TableType
[src]
pub fn new(element: ValType, limits: Limits) -> TableType
[src]
Creates a new table descriptor which will contain the specified
element
and have the limits
applied to its length.
pub fn element(&self) -> &ValType
[src]
Returns the element value type of this table.
pub fn limits(&self) -> &Limits
[src]
Returns the limits, in units of elements, of this table.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TableType
impl Send for TableType
impl Sync for TableType
impl Unpin for TableType
impl UnwindSafe for TableType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,