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, Limits}; let mut memories = MemorySection::new(); memories.memory(MemoryType { limits: Limits { min: 1, max: None, }, }); 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 MemorySectionimpl Send for MemorySectionimpl Sync for MemorySectionimpl Unpin for MemorySectionimpl UnwindSafe for MemorySectionBlanket Implementations
Mutably borrows from an owned value. Read more