Struct wasm_encoder::component::FunctionSection [−][src]
pub struct FunctionSection { /* fields omitted */ }
Expand description
An encoder for the component function section.
Example
use wasm_encoder::component::{Component, FunctionSection, CanonicalOption};
// This assumes there is a function type with
// index 0 and a target adapter function with index 0.
let mut functions = FunctionSection::new();
functions.function(0, &[CanonicalOption::UTF8], 0);
let mut component = Component::new();
component.section(&functions);
let bytes = component.finish();
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for FunctionSection
impl Send for FunctionSection
impl Sync for FunctionSection
impl Unpin for FunctionSection
impl UnwindSafe for FunctionSection
Blanket Implementations
Mutably borrows from an owned value. Read more