Struct parity_wasm::elements::DataSegment
source · pub struct DataSegment { /* private fields */ }Expand description
Data segment definition.
Implementations§
source§impl DataSegment
impl DataSegment
sourcepub fn offset(&self) -> &Option<InitExpr>
pub fn offset(&self) -> &Option<InitExpr>
An i32 initializer expression that computes the offset at which to place the data.
Note that this return None if the segment is passive.
sourcepub fn offset_mut(&mut self) -> &mut Option<InitExpr>
pub fn offset_mut(&mut self) -> &mut Option<InitExpr>
An i32 initializer expression that computes the offset at which to place the data (mutable)
Note that this return None if the segment is passive.
Trait Implementations§
source§impl Clone for DataSegment
impl Clone for DataSegment
source§fn clone(&self) -> DataSegment
fn clone(&self) -> DataSegment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more