Struct parity_wasm_cp::elements::GlobalType [−][src]
pub struct GlobalType { /* fields omitted */ }
Global definition struct
Methods
impl GlobalType
[src]
impl GlobalType
pub fn new(content_type: ValueType, is_mutable: bool) -> Self
[src]
pub fn new(content_type: ValueType, is_mutable: bool) -> Self
New global type
pub fn content_type(&self) -> ValueType
[src]
pub fn content_type(&self) -> ValueType
Type of the global entry
pub fn is_mutable(&self) -> bool
[src]
pub fn is_mutable(&self) -> bool
Is global entry is declared as mutable
Trait Implementations
impl Debug for GlobalType
[src]
impl Debug for GlobalType
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 Copy for GlobalType
[src]
impl Copy for GlobalType
impl Clone for GlobalType
[src]
impl Clone for GlobalType
fn clone(&self) -> GlobalType
[src]
fn clone(&self) -> GlobalType
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 PartialEq for GlobalType
[src]
impl PartialEq for GlobalType
fn eq(&self, other: &GlobalType) -> bool
[src]
fn eq(&self, other: &GlobalType) -> bool
This 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) -> bool
This method tests for !=
.
impl Deserialize for GlobalType
[src]
impl Deserialize for GlobalType
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 GlobalType
[src]
impl Serialize for GlobalType
Auto Trait Implementations
impl Send for GlobalType
impl Send for GlobalType
impl Sync for GlobalType
impl Sync for GlobalType