pub struct Element {
pub kind: ElementKind,
pub ty: ValType,
pub members: Vec<Option<FunctionId>>,
pub name: Option<String>,
/* private fields */
}
Expand description
A passive segment which contains a list of functions
Fields§
§kind: ElementKind
Whether this segment is passive or active.
ty: ValType
The type of elements in this segment
members: Vec<Option<FunctionId>>
The function members of this passive elements segment.
name: Option<String>
The name of this element, used for debugging purposes in the name
custom section.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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