pub struct NestedComponentSection<'a>(pub &'a Component);
Available on crate feature
component-model
only.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> Freeze for NestedComponentSection<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)