Struct wasm_encoder::CustomSection
source · [−]Expand description
A custom section holding arbitrary data.
Fields
name: &'a str
The name of this custom section.
data: &'a [u8]
This custom section’s data.
Trait Implementations
sourceimpl<'a> Clone for CustomSection<'a>
impl<'a> Clone for CustomSection<'a>
sourcefn clone(&self) -> CustomSection<'a>
fn clone(&self) -> CustomSection<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ComponentSection for CustomSection<'_>
impl ComponentSection for CustomSection<'_>
sourceimpl<'a> Debug for CustomSection<'a>
impl<'a> Debug for CustomSection<'a>
sourceimpl Encode for CustomSection<'_>
impl Encode for CustomSection<'_>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CustomSection<'a>
impl<'a> Send for CustomSection<'a>
impl<'a> Sync for CustomSection<'a>
impl<'a> Unpin for CustomSection<'a>
impl<'a> UnwindSafe for CustomSection<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more