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