fn memory_section(module: &Module) -> Option<&MemorySection> {
    for section in module.sections() {
        if let Section::Memory(section) = section {
            return Some(section);
        }
    }
    None
}
/// Checks if given wasm module contains a memory section.
Checks if given wasm module contains a memory section.
Checks if given wasm module contains a memory section .
fn memory_section(module: &Module) -> Option<&MemorySection> {
    for section in module.sections() {
        if let Section::Memory(section) = section {
            return Some(section);
        }
    }
    None
}
fn memory_section ( module : & Module ) -> Option < & MemorySection > { for section in module . sections ( ) { if let Section :: Memory ( section ) = section { return Some ( section ) ; } } None }
Checks if given wasm module contains a memory section.
Checks if given wasm module contains a memory section .
module
&Module
module
&Module