Struct wasm_encoder::ExportSection
source · pub struct ExportSection { /* private fields */ }
Expand description
An encoder for the export section of WebAssembly module.
Example
use wasm_encoder::{Module, ExportSection, ExportKind};
let mut exports = ExportSection::new();
exports.export("foo", ExportKind::Func, 0);
let mut module = Module::new();
module.section(&exports);
let bytes = module.finish();
Implementations§
source§impl ExportSection
impl ExportSection
Trait Implementations§
source§impl Clone for ExportSection
impl Clone for ExportSection
source§fn clone(&self) -> ExportSection
fn clone(&self) -> ExportSection
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 Debug for ExportSection
impl Debug for ExportSection
source§impl Default for ExportSection
impl Default for ExportSection
source§fn default() -> ExportSection
fn default() -> ExportSection
Returns the “default value” for a type. Read more