Struct parity_wasm::elements::CustomSection
[−]
[src]
pub struct CustomSection { /* fields omitted */ }
Custom section
Methods
impl CustomSection
[src]
pub fn name(&self) -> &str
[src]
Name of the custom section
pub fn payload(&self) -> &[u8]
[src]
Payload of the custom secion
pub fn name_mut(&mut self) -> &mut String
[src]
Name of the custom section (mutable)
pub fn payload_mut(&mut self) -> &mut Vec<u8>
[src]
Payload of the custom section (mutable)
Trait Implementations
impl Debug for CustomSection
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for CustomSection
[src]
fn default() -> CustomSection
[src]
Returns the "default value" for a type. Read more
impl Clone for CustomSection
[src]
fn clone(&self) -> CustomSection
[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 Deserialize for CustomSection
[src]
type Error = Error
Serialization error produced by deserialization routine.
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, Self::Error>
[src]
Deserialize type from serial i/o