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
An active segment associated with a table.
Fields
§
offset: Expression<'a>
The offset within table
that we’ll initialize at.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ElemKind<'a>
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§
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