pub struct RawCustomSection {
pub name: String,
pub data: Vec<u8>,
}Expand description
A raw, unparsed custom section.
Fields§
§name: StringThis 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 duplicate 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
impl Eq for RawCustomSection
impl StructuralPartialEq for RawCustomSection
Auto Trait Implementations§
impl Freeze for RawCustomSection
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.