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
source§impl Deserialize for CustomSection
impl Deserialize for CustomSection
source§impl PartialEq<CustomSection> for CustomSection
impl PartialEq<CustomSection> for CustomSection
source§fn eq(&self, other: &CustomSection) -> bool
fn eq(&self, other: &CustomSection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CustomSection
impl Serialize for CustomSection
impl StructuralPartialEq for CustomSection
Auto Trait Implementations§
impl RefUnwindSafe for CustomSection
impl Send for CustomSection
impl Sync for CustomSection
impl Unpin for CustomSection
impl UnwindSafe for CustomSection
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more