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
Define a memory.
Trait Implementations
Returns the “default value” for a type. Read more
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