Struct wasm_encoder::adapter::TypeSection [−][src]
pub struct TypeSection { /* fields omitted */ }
Expand description
An encoder for the adapter module type section.
Example
use wasm_encoder::adapter::{AdapterModule, TypeSection};
let mut types = TypeSection::new();
types.function(&[], &[]);
let mut module = AdapterModule::new();
module.section(&types);
let bytes = module.finish();
Implementations
Define an instance type in this type section.
Define a module type in this type section.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TypeSection
impl Send for TypeSection
impl Sync for TypeSection
impl Unpin for TypeSection
impl UnwindSafe for TypeSection
Blanket Implementations
Mutably borrows from an owned value. Read more