Struct parity_wasm::elements::CustomSection [−][src]
pub struct CustomSection { /* fields omitted */ }Custom section
Methods
impl CustomSection[src]
impl CustomSectionpub fn name(&self) -> &str[src]
pub fn name(&self) -> &strName of the custom section
pub fn payload(&self) -> &[u8][src]
pub fn payload(&self) -> &[u8]Payload of the custom secion
pub fn name_mut(&mut self) -> &mut String[src]
pub fn name_mut(&mut self) -> &mut StringName of the custom section (mutable)
pub fn payload_mut(&mut self) -> &mut Vec<u8>[src]
pub fn payload_mut(&mut self) -> &mut Vec<u8>Payload of the custom section (mutable)
Trait Implementations
impl Debug for CustomSection[src]
impl Debug for CustomSectionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for CustomSection[src]
impl Default for CustomSectionfn default() -> CustomSection[src]
fn default() -> CustomSectionReturns the "default value" for a type. Read more
impl Clone for CustomSection[src]
impl Clone for CustomSectionfn clone(&self) -> CustomSection[src]
fn clone(&self) -> CustomSectionReturns 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 CustomSection[src]
impl PartialEq for CustomSectionfn eq(&self, other: &CustomSection) -> bool[src]
fn eq(&self, other: &CustomSection) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &CustomSection) -> bool[src]
fn ne(&self, other: &CustomSection) -> boolThis method tests for !=.
impl Deserialize for CustomSection[src]
impl Deserialize for CustomSectiontype 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 CustomSection[src]
impl Serialize for CustomSectionAuto Trait Implementations
impl Send for CustomSection
impl Send for CustomSectionimpl Sync for CustomSection
impl Sync for CustomSection