Struct wasm_encoder::adapter::ExportSection [−][src]
pub struct ExportSection { /* fields omitted */ }
Expand description
An encoder for the adapter module export section.
Example
use wasm_encoder::adapter::{AdapterModule, ExportSection, IndexRef};
// This assumes there is a function at index 0 to export
let mut exports = ExportSection::new();
exports.export("foo", IndexRef::Function(0));
let mut module = AdapterModule::new();
module.section(&exports);
let bytes = module.finish();
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ExportSection
impl Send for ExportSection
impl Sync for ExportSection
impl Unpin for ExportSection
impl UnwindSafe for ExportSection
Blanket Implementations
Mutably borrows from an owned value. Read more