Struct parity_wasm_cp::elements::DataSection [−][src]
pub struct DataSection(_);
Data entries definitions.
Methods
impl DataSection
[src]
impl DataSection
pub fn with_entries(entries: Vec<DataSegment>) -> Self
[src]
pub fn with_entries(entries: Vec<DataSegment>) -> Self
New data section
pub fn entries(&self) -> &[DataSegment]
[src]
pub fn entries(&self) -> &[DataSegment]
List of all data entries in the section
pub fn entries_mut(&mut self) -> &mut Vec<DataSegment>
[src]
pub fn entries_mut(&mut self) -> &mut Vec<DataSegment>
List of all data entries in the section (mutable)
Trait Implementations
impl Default for DataSection
[src]
impl Default for DataSection
fn default() -> DataSection
[src]
fn default() -> DataSection
Returns the "default value" for a type. Read more
impl Debug for DataSection
[src]
impl Debug for DataSection
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 DataSection
[src]
impl Clone for DataSection
fn clone(&self) -> DataSection
[src]
fn clone(&self) -> DataSection
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 DataSection
[src]
impl PartialEq for DataSection
fn eq(&self, other: &DataSection) -> bool
[src]
fn eq(&self, other: &DataSection) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DataSection) -> bool
[src]
fn ne(&self, other: &DataSection) -> bool
This method tests for !=
.
impl Deserialize for DataSection
[src]
impl Deserialize for DataSection
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 DataSection
[src]
impl Serialize for DataSection
Auto Trait Implementations
impl Send for DataSection
impl Send for DataSection
impl Sync for DataSection
impl Sync for DataSection