Struct walrus::RawCustomSection
source · pub struct RawCustomSection {
pub name: String,
pub data: Vec<u8>,
}
Expand description
A raw, unparsed custom section.
Fields§
§name: String
This custom section’s name.
data: Vec<u8>
This custom section’s raw data.
Trait Implementations§
source§impl Clone for RawCustomSection
impl Clone for RawCustomSection
source§fn clone(&self) -> RawCustomSection
fn clone(&self) -> RawCustomSection
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 CustomSection for RawCustomSection
impl CustomSection for RawCustomSection
source§fn data(&self, _: &IdsToIndices) -> Cow<'_, [u8]>
fn data(&self, _: &IdsToIndices) -> Cow<'_, [u8]>
Get the data payload for this custom section. Read more
source§fn add_gc_roots(&self, roots: &mut Roots)
fn add_gc_roots(&self, roots: &mut Roots)
Add any core wasm roots to the provided
roots
argument. Read moresource§fn apply_code_transform(&mut self, transform: &CodeTransform)
fn apply_code_transform(&mut self, transform: &CodeTransform)
Apply the given code transformations to this custom section. Read more
source§impl Debug for RawCustomSection
impl Debug for RawCustomSection
source§impl PartialEq for RawCustomSection
impl PartialEq for RawCustomSection
source§fn eq(&self, other: &RawCustomSection) -> bool
fn eq(&self, other: &RawCustomSection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RawCustomSection
impl StructuralEq for RawCustomSection
impl StructuralPartialEq for RawCustomSection
Auto Trait Implementations§
impl RefUnwindSafe for RawCustomSection
impl Send for RawCustomSection
impl Sync for RawCustomSection
impl Unpin for RawCustomSection
impl UnwindSafe for RawCustomSection
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.