pub enum TableSegmentElements {
Functions(Box<[FuncIndex]>),
Expressions(Box<[ConstExpr]>),
}
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<[ConstExpr]>)
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
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
)