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 moresource§impl Debug for DataSegment
impl Debug for DataSegment
source§impl Deserialize for DataSegment
impl Deserialize for DataSegment
source§impl PartialEq for DataSegment
impl PartialEq for DataSegment
source§fn eq(&self, other: &DataSegment) -> bool
fn eq(&self, other: &DataSegment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DataSegment
impl Serialize for DataSegment
impl StructuralPartialEq for DataSegment
Auto Trait Implementations§
impl Freeze for DataSegment
impl RefUnwindSafe for DataSegment
impl Send for DataSegment
impl Sync for DataSegment
impl Unpin for DataSegment
impl UnwindSafe for DataSegment
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)