pub enum ElementMode {
Passive,
Active(TableIndex, Expression),
Declarative,
}Expand description
Element segments have a mode that identifies them as either passive, active, or declarative.
Variants§
Passive
A passive element segment’s elements can be copied to a table using the 𝗍𝖺𝖻𝗅𝖾.𝗂𝗇𝗂𝗍 instruction.
Active(TableIndex, Expression)
An active element segment copies its elements into a table during instantiation, as specified by a table index and a constant expression defining an offset into that table. The 𝗈𝖿𝖿𝗌𝖾𝗍 is given by a constant expression.
Declarative
A declarative element segment is not available at runtime but merely serves to forward-declare references that are formed in code with instructions like 𝗋𝖾𝖿.𝖿𝗎𝗇𝖼.
Trait Implementations§
Source§impl Clone for ElementMode
impl Clone for ElementMode
Source§fn clone(&self) -> ElementMode
fn clone(&self) -> ElementMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElementMode
impl Debug for ElementMode
Source§impl PartialEq for ElementMode
impl PartialEq for ElementMode
impl StructuralPartialEq for ElementMode
Auto Trait Implementations§
impl Freeze for ElementMode
impl RefUnwindSafe for ElementMode
impl Send for ElementMode
impl Sync for ElementMode
impl Unpin for ElementMode
impl UnwindSafe for ElementMode
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