Struct parity_wasm::elements::CustomSection [−][src]
pub struct CustomSection { /* fields omitted */ }Custom section.
Implementations
impl CustomSection[src]
impl CustomSection[src]pub fn new(name: String, payload: Vec<u8>) -> CustomSection[src]
Creates a new custom section with the given name and payload.
pub fn name(&self) -> &str[src]
Name of the custom section.
pub fn payload(&self) -> &[u8][src]
Payload of the custom section.
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 Clone for CustomSection[src]
impl Clone for CustomSection[src]fn clone(&self) -> CustomSection[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for CustomSection[src]
impl Default for CustomSection[src]fn default() -> CustomSection[src]
impl Deserialize for CustomSection[src]
impl Deserialize for CustomSection[src]impl PartialEq<CustomSection> for CustomSection[src]
impl PartialEq<CustomSection> for CustomSection[src]fn eq(&self, other: &CustomSection) -> bool[src]
fn ne(&self, other: &CustomSection) -> bool[src]
impl Serialize for CustomSection[src]
impl Serialize for CustomSection[src]