Struct parity_wasm::elements::GlobalSection
source · pub struct GlobalSection(_);
Expand description
Globals definition section.
Implementations§
source§impl GlobalSection
impl GlobalSection
sourcepub fn entries(&self) -> &[GlobalEntry]
pub fn entries(&self) -> &[GlobalEntry]
List of all global entries in the section.
sourcepub fn with_entries(entries: Vec<GlobalEntry>) -> Self
pub fn with_entries(entries: Vec<GlobalEntry>) -> Self
New global section from list of global entries.
sourcepub fn entries_mut(&mut self) -> &mut Vec<GlobalEntry>
pub fn entries_mut(&mut self) -> &mut Vec<GlobalEntry>
List of all global entries in the section (mutable).
Trait Implementations§
source§impl Clone for GlobalSection
impl Clone for GlobalSection
source§fn clone(&self) -> GlobalSection
fn clone(&self) -> GlobalSection
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 GlobalSection
impl Debug for GlobalSection
source§impl Default for GlobalSection
impl Default for GlobalSection
source§fn default() -> GlobalSection
fn default() -> GlobalSection
Returns the “default value” for a type. Read more