Struct parity_wasm::elements::GlobalEntry [−][src]
pub struct GlobalEntry { /* fields omitted */ }Global entry in the module.
Methods
impl GlobalEntry[src]
impl GlobalEntrypub fn new(global_type: GlobalType, init_expr: InitExpr) -> Self[src]
pub fn new(global_type: GlobalType, init_expr: InitExpr) -> SelfNew global entry
pub fn global_type(&self) -> &GlobalType[src]
pub fn global_type(&self) -> &GlobalTypeGlobal type.
pub fn init_expr(&self) -> &InitExpr[src]
pub fn init_expr(&self) -> &InitExprInitialization expression (instructions) for global.
pub fn global_type_mut(&mut self) -> &mut GlobalType[src]
pub fn global_type_mut(&mut self) -> &mut GlobalTypeGlobal type (mutable)
pub fn init_expr_mut(&mut self) -> &mut InitExpr[src]
pub fn init_expr_mut(&mut self) -> &mut InitExprInitialization expression (instructions) for global (mutable)
Trait Implementations
impl Clone for GlobalEntry[src]
impl Clone for GlobalEntryfn clone(&self) -> GlobalEntry[src]
fn clone(&self) -> GlobalEntryReturns 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 GlobalEntryfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for GlobalEntry[src]
impl PartialEq for GlobalEntryfn eq(&self, other: &GlobalEntry) -> bool[src]
fn eq(&self, other: &GlobalEntry) -> boolThis 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) -> boolThis method tests for !=.
impl Deserialize for GlobalEntry[src]
impl Deserialize for GlobalEntrytype 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 GlobalEntryAuto Trait Implementations
impl Send for GlobalEntry
impl Send for GlobalEntryimpl Sync for GlobalEntry
impl Sync for GlobalEntry