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§
source§impl<'a> Clone for NestedComponentSection<'a>
impl<'a> Clone for NestedComponentSection<'a>
source§fn clone(&self) -> NestedComponentSection<'a>
fn clone(&self) -> NestedComponentSection<'a>
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 ComponentSection for NestedComponentSection<'_>
impl ComponentSection for NestedComponentSection<'_>
source§impl<'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§
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