Enum wasm_encoder::ElementMode
source · pub enum ElementMode<'a> {
Passive,
Declared,
Active {
table: Option<u32>,
offset: &'a ConstExpr,
},
}
Expand description
An element segment’s mode.
Variants§
Passive
A passive element segment.
Passive segments are part of the bulk memory proposal.
Declared
A declared element segment.
Declared segments are part of the bulk memory proposal.
Active
An active element segment.
Trait Implementations§
source§impl<'a> Clone for ElementMode<'a>
impl<'a> Clone for ElementMode<'a>
source§fn clone(&self) -> ElementMode<'a>
fn clone(&self) -> ElementMode<'a>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a> Freeze for ElementMode<'a>
impl<'a> RefUnwindSafe for ElementMode<'a>
impl<'a> Send for ElementMode<'a>
impl<'a> Sync for ElementMode<'a>
impl<'a> Unpin for ElementMode<'a>
impl<'a> UnwindSafe for ElementMode<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)