Struct wasm_encoder::MemorySection [−][src]
pub struct MemorySection { /* fields omitted */ }
Expand description
An encoder for the memory section.
Example
use wasm_encoder::{Module, MemorySection, MemoryType}; let mut memories = MemorySection::new(); memories.memory(MemoryType { minimum: 1, maximum: None, memory64: false, }); let mut module = Module::new(); module.section(&memories); let wasm_bytes = module.finish();
Implementations
Create a new memory section encoder.
Define a memory.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MemorySection
impl Send for MemorySection
impl Sync for MemorySection
impl Unpin for MemorySection
impl UnwindSafe for MemorySection
Blanket Implementations
Mutably borrows from an owned value. Read more