pub enum ElemKind<'a> {
Passive,
Declared,
Active {
table: Index<'a>,
offset: Expression<'a>,
},
}
Expand description
Different ways to define an element segment in an mdoule.
Variants
Passive
A passive segment that isn’t associated with a table and can be used in various bulk-memory instructions.
Declared
A declared element segment that is purely used to declare function references.
Active
Fields
table: Index<'a>
The table this elem
is initializing.
offset: Expression<'a>
The offset within table
that we’ll initialize at.
An active segment associated with a table.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ElemKind<'a>
impl<'a> Send for ElemKind<'a>
impl<'a> Sync for ElemKind<'a>
impl<'a> Unpin for ElemKind<'a>
impl<'a> UnwindSafe for ElemKind<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more