Struct wasm_encoder::NestedComponentSection
source · pub struct NestedComponentSection<'a>(pub &'a Component);
Expand description
An encoder for the component section of WebAssembly components.
Example
use wasm_encoder::{Component, NestedComponentSection};
let mut nested = Component::new();
let mut component = Component::new();
component.section(&NestedComponentSection(&nested));
let bytes = component.finish();
Tuple Fields
0: &'a Component
Trait Implementations
sourceimpl<'a> Clone for NestedComponentSection<'a>
impl<'a> Clone for NestedComponentSection<'a>
sourcefn clone(&self) -> NestedComponentSection<'a>
fn clone(&self) -> NestedComponentSection<'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 moresourceimpl ComponentSection for NestedComponentSection<'_>
impl ComponentSection for NestedComponentSection<'_>
sourceimpl<'a> Debug for NestedComponentSection<'a>
impl<'a> Debug for NestedComponentSection<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for NestedComponentSection<'a>
impl<'a> Send for NestedComponentSection<'a>
impl<'a> Sync for NestedComponentSection<'a>
impl<'a> Unpin for NestedComponentSection<'a>
impl<'a> UnwindSafe for NestedComponentSection<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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