Enum wast::core::ElemPayload
source · pub enum ElemPayload<'a> {
Indices(Vec<Index<'a>>),
Exprs {
ty: RefType<'a>,
exprs: Vec<Expression<'a>>,
},
}
Expand description
Different ways to define the element segment payload in a module.
Variants§
Indices(Vec<Index<'a>>)
This element segment has a contiguous list of function indices
Exprs
This element segment has a list of optional function indices,
represented as expressions using ref.func
and ref.null
.
Fields
§
exprs: Vec<Expression<'a>>
The expressions in this segment.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ElemPayload<'a>
impl<'a> RefUnwindSafe for ElemPayload<'a>
impl<'a> Send for ElemPayload<'a>
impl<'a> Sync for ElemPayload<'a>
impl<'a> Unpin for ElemPayload<'a>
impl<'a> UnwindSafe for ElemPayload<'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