Enum wast::ElemPayload
source · [−]pub enum ElemPayload<'a> {
Indices(Vec<ItemRef<'a, func>>),
Exprs {
ty: RefType<'a>,
exprs: Vec<Expression<'a>>,
},
}
Expand description
Different ways to define the element segment payload in a module.
Variants
Indices(Vec<ItemRef<'a, func>>)
This element segment has a contiguous list of function indices
Exprs
Fields
ty: RefType<'a>
The desired type of each expression below.
exprs: Vec<Expression<'a>>
The expressions in this segment.
This element segment has a list of optional function indices,
represented as expressions using ref.func
and ref.null
.
Trait Implementations
sourceimpl<'a> Debug for ElemPayload<'a>
impl<'a> Debug for ElemPayload<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more