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 more