Struct parity_wasm_cp::elements::ElementSegment [−][src]
pub struct ElementSegment { /* fields omitted */ }
Entry in the element section.
Methods
impl ElementSegment
[src]
impl ElementSegment
pub fn new(index: u32, offset: InitExpr, members: Vec<u32>) -> Self
[src]
pub fn new(index: u32, offset: InitExpr, members: Vec<u32>) -> Self
New 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) -> u32
Table index (currently valid only value of 0
)
pub fn offset(&self) -> &InitExpr
[src]
pub fn offset(&self) -> &InitExpr
An 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 InitExpr
An i32 initializer expression that computes the offset at which to place the elements (mutable)
Trait Implementations
impl Debug for ElementSegment
[src]
impl Debug for ElementSegment
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ElementSegment
[src]
impl Clone for ElementSegment
fn clone(&self) -> ElementSegment
[src]
fn clone(&self) -> ElementSegment
Returns 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 ElementSegment
fn eq(&self, other: &ElementSegment) -> bool
[src]
fn eq(&self, other: &ElementSegment) -> bool
This 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) -> bool
This method tests for !=
.
impl Deserialize for ElementSegment
[src]
impl Deserialize for ElementSegment
type 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 ElementSegment
Auto Trait Implementations
impl Send for ElementSegment
impl Send for ElementSegment
impl Sync for ElementSegment
impl Sync for ElementSegment