Struct parity_wasm::elements::ModuleNameSection [−][src]
pub struct ModuleNameSection { /* fields omitted */ }The name of this module.
Methods
impl ModuleNameSection[src]
impl ModuleNameSectionpub fn new<S: Into<String>>(name: S) -> ModuleNameSection[src]
pub fn new<S: Into<String>>(name: S) -> ModuleNameSectionCreate a new module name section with the specified name.
pub fn name(&self) -> &str[src]
pub fn name(&self) -> &strThe name of this module.
pub fn name_mut(&mut self) -> &mut String[src]
pub fn name_mut(&mut self) -> &mut StringThe name of this module (mutable).
Trait Implementations
impl Clone for ModuleNameSection[src]
impl Clone for ModuleNameSectionfn clone(&self) -> ModuleNameSection[src]
fn clone(&self) -> ModuleNameSectionReturns 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 ModuleNameSection[src]
impl Debug for ModuleNameSectionfn 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 ModuleNameSection[src]
impl PartialEq for ModuleNameSectionfn eq(&self, other: &ModuleNameSection) -> bool[src]
fn eq(&self, other: &ModuleNameSection) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ModuleNameSection) -> bool[src]
fn ne(&self, other: &ModuleNameSection) -> boolThis method tests for !=.
impl Serialize for ModuleNameSection[src]
impl Serialize for ModuleNameSectiontype Error = Error
Serialization error produced by serialization routine.
fn serialize<W: Write>(self, wtr: &mut W) -> Result<(), Error>[src]
fn serialize<W: Write>(self, wtr: &mut W) -> Result<(), Error>Serialize type to serial i/o
impl Deserialize for ModuleNameSection[src]
impl Deserialize for ModuleNameSectiontype Error = Error
Serialization error produced by deserialization routine.
fn deserialize<R: Read>(rdr: &mut R) -> Result<ModuleNameSection, Error>[src]
fn deserialize<R: Read>(rdr: &mut R) -> Result<ModuleNameSection, Error>Deserialize type from serial i/o
Auto Trait Implementations
impl Send for ModuleNameSection
impl Send for ModuleNameSectionimpl Sync for ModuleNameSection
impl Sync for ModuleNameSection