Struct parity_wasm::elements::ModuleNameSection [−][src]
pub struct ModuleNameSection { /* fields omitted */ }
The name of this module.
Methods
impl ModuleNameSection
[src]
impl ModuleNameSection
pub fn new<S: Into<String>>(name: S) -> ModuleNameSection
[src]
pub fn new<S: Into<String>>(name: S) -> ModuleNameSection
Create a new module name section with the specified name.
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
The name of this module.
pub fn name_mut(&mut self) -> &mut String
[src]
pub fn name_mut(&mut self) -> &mut String
The name of this module (mutable).
Trait Implementations
impl Clone for ModuleNameSection
[src]
impl Clone for ModuleNameSection
fn clone(&self) -> ModuleNameSection
[src]
fn clone(&self) -> ModuleNameSection
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 Debug for ModuleNameSection
[src]
impl Debug for ModuleNameSection
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 PartialEq for ModuleNameSection
[src]
impl PartialEq for ModuleNameSection
fn eq(&self, other: &ModuleNameSection) -> bool
[src]
fn eq(&self, other: &ModuleNameSection) -> bool
This 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) -> bool
This method tests for !=
.
impl Serialize for ModuleNameSection
[src]
impl Serialize for ModuleNameSection
type 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 ModuleNameSection
type 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 ModuleNameSection
impl Sync for ModuleNameSection
impl Sync for ModuleNameSection