/// Emits the elements section to the output.
///
/// See https://webassembly.github.io/spec/core/binary/modules.html#elements-section
Emits the elements section to the output.
Emits the elements section to the output .
pub fn emit_element_section<O: Write>(module: &Module, output: &mut O) -> Result<usize, EmitError> {
    match module.elements() {
        None => Ok(0),
        Some(elements) => emit_section(ModuleSection::Element, output, |o| {
            emit_vector(elements, o, emit_element)
        }),
    }
}
pub fn emit_element_section < O : Write > ( module : & Module , output : & mut O ) -> Result < usize , EmitError > { match module . elements ( ) { None => Ok ( 0 ) , Some ( elements ) => emit_section ( ModuleSection :: Element , output , | o | { emit_vector ( elements , o , emit_element ) } ) , } }
Emits the elements section to the output.
Emits the elements section to the output .
module
&Module
output
&mut O