Struct parity_wasm::elements::CustomSection [−][src]
pub struct CustomSection { /* fields omitted */ }
Custom section
Methods
impl CustomSection
[src]
impl CustomSection
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
Name 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 String
Name 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 CustomSection
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 Default for CustomSection
[src]
impl Default for CustomSection
fn default() -> CustomSection
[src]
fn default() -> CustomSection
Returns the "default value" for a type. Read more
impl Clone for CustomSection
[src]
impl Clone for CustomSection
fn clone(&self) -> CustomSection
[src]
fn clone(&self) -> CustomSection
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 PartialEq for CustomSection
[src]
impl PartialEq for CustomSection
fn eq(&self, other: &CustomSection) -> bool
[src]
fn eq(&self, other: &CustomSection) -> bool
This 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) -> bool
This method tests for !=
.
impl Deserialize for CustomSection
[src]
impl Deserialize for CustomSection
type 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 CustomSection
Auto Trait Implementations
impl Send for CustomSection
impl Send for CustomSection
impl Sync for CustomSection
impl Sync for CustomSection