Struct parity_wasm::elements::ModuleNameSection
[−]
[src]
pub struct ModuleNameSection { /* fields omitted */ }The name of this module.
Methods
impl ModuleNameSection[src]
pub fn new<S: Into<String>>(name: S) -> ModuleNameSection[src]
Create a new module name section with the specified name.
pub fn name(&self) -> &str[src]
The name of this module.
pub fn name_mut(&mut self) -> &mut String[src]
The name of this module (mutable).
Trait Implementations
impl Clone for ModuleNameSection[src]
fn clone(&self) -> ModuleNameSection[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for ModuleNameSection[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for ModuleNameSection[src]
fn eq(&self, __arg_0: &ModuleNameSection) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ModuleNameSection) -> bool[src]
This method tests for !=.
impl Serialize for ModuleNameSection[src]
type Error = Error
Serialization error produced by serialization routine.
fn serialize<W: Write>(self, wtr: &mut W) -> Result<(), Error>[src]
Serialize type to serial i/o
impl Deserialize for ModuleNameSection[src]
type Error = Error
Serialization error produced by deserialization routine.
fn deserialize<R: Read>(rdr: &mut R) -> Result<ModuleNameSection, Error>[src]
Deserialize type from serial i/o