Struct parity_wasm::elements::GlobalType [−][src]
pub struct GlobalType { /* fields omitted */ }Global definition struct
Methods
impl GlobalType[src]
impl GlobalTypepub fn new(content_type: ValueType, is_mutable: bool) -> Self[src]
pub fn new(content_type: ValueType, is_mutable: bool) -> SelfNew global type
pub fn content_type(&self) -> ValueType[src]
pub fn content_type(&self) -> ValueTypeType of the global entry
pub fn is_mutable(&self) -> bool[src]
pub fn is_mutable(&self) -> boolIs global entry is declared as mutable
Trait Implementations
impl Debug for GlobalType[src]
impl Debug for GlobalTypefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for GlobalType[src]
impl Copy for GlobalTypeimpl Clone for GlobalType[src]
impl Clone for GlobalTypefn clone(&self) -> GlobalType[src]
fn clone(&self) -> GlobalTypeReturns 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 GlobalType[src]
impl PartialEq for GlobalTypefn eq(&self, other: &GlobalType) -> bool[src]
fn eq(&self, other: &GlobalType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &GlobalType) -> bool[src]
fn ne(&self, other: &GlobalType) -> boolThis method tests for !=.
impl Deserialize for GlobalType[src]
impl Deserialize for GlobalTypetype 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 GlobalType[src]
impl Serialize for GlobalTypeAuto Trait Implementations
impl Send for GlobalType
impl Send for GlobalTypeimpl Sync for GlobalType
impl Sync for GlobalType