Struct parity_wasm::elements::DataSection
source · pub struct DataSection(/* private fields */);
Expand description
Data entries definitions.
Implementations§
source§impl DataSection
impl DataSection
sourcepub fn with_entries(entries: Vec<DataSegment>) -> Self
pub fn with_entries(entries: Vec<DataSegment>) -> Self
New data section.
sourcepub fn entries(&self) -> &[DataSegment]
pub fn entries(&self) -> &[DataSegment]
List of all data entries in the section.
sourcepub fn entries_mut(&mut self) -> &mut Vec<DataSegment>
pub fn entries_mut(&mut self) -> &mut Vec<DataSegment>
List of all data entries in the section (mutable).
Trait Implementations§
source§impl Clone for DataSection
impl Clone for DataSection
source§fn clone(&self) -> DataSection
fn clone(&self) -> DataSection
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 DataSection
impl Debug for DataSection
source§impl Default for DataSection
impl Default for DataSection
source§fn default() -> DataSection
fn default() -> DataSection
Returns the “default value” for a type. Read more
source§impl Deserialize for DataSection
impl Deserialize for DataSection
source§impl PartialEq for DataSection
impl PartialEq for DataSection
source§fn eq(&self, other: &DataSection) -> bool
fn eq(&self, other: &DataSection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DataSection
impl Serialize for DataSection
impl StructuralPartialEq for DataSection
Auto Trait Implementations§
impl Freeze for DataSection
impl RefUnwindSafe for DataSection
impl Send for DataSection
impl Sync for DataSection
impl Unpin for DataSection
impl UnwindSafe for DataSection
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
)