Struct parity_wasm::elements::CustomSection
source · pub struct CustomSection { /* private fields */ }
Expand description
Custom section.
Implementations§
source§impl CustomSection
impl CustomSection
sourcepub fn new(name: String, payload: Vec<u8>) -> CustomSection
pub fn new(name: String, payload: Vec<u8>) -> CustomSection
Creates a new custom section with the given name and payload.
sourcepub fn payload_mut(&mut self) -> &mut Vec<u8>
pub fn payload_mut(&mut self) -> &mut Vec<u8>
Payload of the custom section (mutable).
Trait Implementations§
source§impl Clone for CustomSection
impl Clone for CustomSection
source§fn clone(&self) -> CustomSection
fn clone(&self) -> CustomSection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CustomSection
impl Debug for CustomSection
source§impl Default for CustomSection
impl Default for CustomSection
source§fn default() -> CustomSection
fn default() -> CustomSection
Returns the “default value” for a type. Read more