Struct parity_wasm::elements::ElementSegment [−][src]
pub struct ElementSegment { /* fields omitted */ }Entry in the element section.
Methods
impl ElementSegment[src]
impl ElementSegmentpub fn new(index: u32, offset: InitExpr, members: Vec<u32>) -> Self[src]
pub fn new(index: u32, offset: InitExpr, members: Vec<u32>) -> SelfNew element segment.
pub fn members(&self) -> &[u32][src]
pub fn members(&self) -> &[u32]Sequence of function indices.
pub fn members_mut(&mut self) -> &mut Vec<u32>[src]
pub fn members_mut(&mut self) -> &mut Vec<u32>Sequence of function indices (mutable)
pub fn index(&self) -> u32[src]
pub fn index(&self) -> u32Table index (currently valid only value of 0)
pub fn offset(&self) -> &InitExpr[src]
pub fn offset(&self) -> &InitExprAn i32 initializer expression that computes the offset at which to place the elements.
pub fn offset_mut(&mut self) -> &mut InitExpr[src]
pub fn offset_mut(&mut self) -> &mut InitExprAn i32 initializer expression that computes the offset at which to place the elements (mutable)
Trait Implementations
impl Debug for ElementSegment[src]
impl Debug for ElementSegmentfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for ElementSegment[src]
impl Clone for ElementSegmentfn clone(&self) -> ElementSegment[src]
fn clone(&self) -> ElementSegmentReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for ElementSegment[src]
impl PartialEq for ElementSegmentfn eq(&self, other: &ElementSegment) -> bool[src]
fn eq(&self, other: &ElementSegment) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ElementSegment) -> bool[src]
fn ne(&self, other: &ElementSegment) -> boolThis method tests for !=.
impl Deserialize for ElementSegment[src]
impl Deserialize for ElementSegmenttype Error = Error
Serialization error produced by deserialization routine.
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>Deserialize type from serial i/o
impl Serialize for ElementSegment[src]
impl Serialize for ElementSegmentAuto Trait Implementations
impl Send for ElementSegment
impl Send for ElementSegmentimpl Sync for ElementSegment
impl Sync for ElementSegment