pub enum TableSegmentElements {
Functions(Box<[FuncIndex]>),
Expressions(Box<[TableElementExpression]>),
}
Expand description
Elements of a table segment, either a list of functions or list of arbitrary expressions.
Variants§
Functions(Box<[FuncIndex]>)
A sequential list of functions where FuncIndex::reserved_value()
indicates a null function.
Expressions(Box<[TableElementExpression]>)
Arbitrary expressions, aka either functions, null or a load of a global.
Implementations§
Trait Implementations§
source§impl Clone for TableSegmentElements
impl Clone for TableSegmentElements
source§fn clone(&self) -> TableSegmentElements
fn clone(&self) -> TableSegmentElements
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 moresource§impl Debug for TableSegmentElements
impl Debug for TableSegmentElements
source§impl<'de> Deserialize<'de> for TableSegmentElements
impl<'de> Deserialize<'de> for TableSegmentElements
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TableSegmentElements
impl RefUnwindSafe for TableSegmentElements
impl Send for TableSegmentElements
impl Sync for TableSegmentElements
impl Unpin for TableSegmentElements
impl UnwindSafe for TableSegmentElements
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