Struct parity_wasm_cp::elements::GlobalEntry [−][src]
pub struct GlobalEntry { /* fields omitted */ }
Global entry in the module.
Methods
impl GlobalEntry
[src]
impl GlobalEntry
pub fn new(global_type: GlobalType, init_expr: InitExpr) -> Self
[src]
pub fn new(global_type: GlobalType, init_expr: InitExpr) -> Self
New global entry
pub fn global_type(&self) -> &GlobalType
[src]
pub fn global_type(&self) -> &GlobalType
Global type.
pub fn init_expr(&self) -> &InitExpr
[src]
pub fn init_expr(&self) -> &InitExpr
Initialization expression (instructions) for global.
pub fn global_type_mut(&mut self) -> &mut GlobalType
[src]
pub fn global_type_mut(&mut self) -> &mut GlobalType
Global type (mutable)
pub fn init_expr_mut(&mut self) -> &mut InitExpr
[src]
pub fn init_expr_mut(&mut self) -> &mut InitExpr
Initialization expression (instructions) for global (mutable)
Trait Implementations
impl Clone for GlobalEntry
[src]
impl Clone for GlobalEntry
fn clone(&self) -> GlobalEntry
[src]
fn clone(&self) -> GlobalEntry
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 Debug for GlobalEntry
[src]
impl Debug for GlobalEntry
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 PartialEq for GlobalEntry
[src]
impl PartialEq for GlobalEntry
fn eq(&self, other: &GlobalEntry) -> bool
[src]
fn eq(&self, other: &GlobalEntry) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GlobalEntry) -> bool
[src]
fn ne(&self, other: &GlobalEntry) -> bool
This method tests for !=
.
impl Deserialize for GlobalEntry
[src]
impl Deserialize for GlobalEntry
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 GlobalEntry
[src]
impl Serialize for GlobalEntry
Auto Trait Implementations
impl Send for GlobalEntry
impl Send for GlobalEntry
impl Sync for GlobalEntry
impl Sync for GlobalEntry