pub enum TableKind<'a> {
Import {
import: InlineImport<'a>,
ty: TableType<'a>,
},
Normal {
ty: TableType<'a>,
init_expr: Option<Expression<'a>>,
},
Inline {
elem: RefType<'a>,
is64: bool,
shared: bool,
payload: ElemPayload<'a>,
},
}Expand description
Different ways to textually define a table.
Variants§
Import
This table is actually an inlined import definition.
Normal
A typical memory definition which simply says the limits of the table.
Fields
§
init_expr: Option<Expression<'a>>Optional items initializer expression.
Inline
The elem segments of this table, starting from 0, explicitly listed.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TableKind<'a>
impl<'a> RefUnwindSafe for TableKind<'a>
impl<'a> Send for TableKind<'a>
impl<'a> Sync for TableKind<'a>
impl<'a> Unpin for TableKind<'a>
impl<'a> UnwindSafe for TableKind<'a>
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