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 Clone for ElementSegment[src]
fn clone(&self) -> ElementSegment[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
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