Struct parity_wasm::elements::GlobalSection
source · pub struct GlobalSection(_);
Expand description
Globals definition section.
Implementations
sourceimpl 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
sourceimpl Clone for GlobalSection
impl Clone for GlobalSection
sourcefn clone(&self) -> GlobalSection
fn clone(&self) -> GlobalSection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GlobalSection
impl Debug for GlobalSection
sourceimpl Default for GlobalSection
impl Default for GlobalSection
sourcefn default() -> GlobalSection
fn default() -> GlobalSection
Returns the “default value” for a type. Read more
sourceimpl Deserialize for GlobalSection
impl Deserialize for GlobalSection
sourceimpl PartialEq<GlobalSection> for GlobalSection
impl PartialEq<GlobalSection> for GlobalSection
sourcefn eq(&self, other: &GlobalSection) -> bool
fn eq(&self, other: &GlobalSection) -> bool
sourceimpl Serialize for GlobalSection
impl Serialize for GlobalSection
impl StructuralPartialEq for GlobalSection
Auto Trait Implementations
impl RefUnwindSafe for GlobalSection
impl Send for GlobalSection
impl Sync for GlobalSection
impl Unpin for GlobalSection
impl UnwindSafe for GlobalSection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more