Struct parity_wasm::elements::ElementSegment
[−]
[src]
pub struct ElementSegment { /* fields omitted */ }Entry in the element section.
Methods
impl ElementSegment[src]
fn new(index: u32, offset: InitExpr, members: Vec<u32>) -> Self[src]
New element segment.
fn members(&self) -> &[u32][src]
Sequence of function indices.
fn members_mut(&mut self) -> &mut Vec<u32>[src]
Sequence of function indices (mutable)
fn index(&self) -> u32[src]
Table index (currently valid only value of 0)
fn offset(&self) -> &InitExpr[src]
An i32 initializer expression that computes the offset at which to place the elements.
fn offset_mut(&mut self) -> &mut InitExpr[src]
An i32 initializer expression that computes the offset at which to place the elements (mutable)
Trait Implementations
impl Debug for ElementSegment[src]
impl Deserialize for ElementSegment[src]
type Error = Error
Serialization error produced by deserialization routine.
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>[src]
Deserialize type from serial i/o