Struct parity_wasm::elements::ElementSegment
[−]
[src]
pub struct ElementSegment { /* fields omitted */ }
Entry in the element section.
Methods
impl ElementSegment
[src]
pub fn new(index: u32, offset: InitExpr, members: Vec<u32>) -> Self
[src]
New element segment.
pub fn members(&self) -> &[u32]
[src]
Sequence of function indices.
pub fn members_mut(&mut self) -> &mut Vec<u32>
[src]
Sequence of function indices (mutable)
pub fn index(&self) -> u32
[src]
Table index (currently valid only value of 0
)
pub fn offset(&self) -> &InitExpr
[src]
An i32 initializer expression that computes the offset at which to place the elements.
pub 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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
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