pub fn emit_custom_sections<O: Write>(
    module: &Module,
    insertion_point: ModuleSection,
    output: &mut O,
) -> Result<usize, EmitError> {
    match module.custom_sections_at(insertion_point) {
        None => Ok(0),
        Some(sections) => emit_repeated(sections, output, emit_custom_section),
    }
}
/// Emits the custom section to the output.
///
/// See https://webassembly.github.io/spec/core/binary/modules.html#custom-section
Emits the custom section to the output.
Emits the custom section to the output .
pub fn emit_custom_sections<O: Write>(
    module: &Module,
    insertion_point: ModuleSection,
    output: &mut O,
) -> Result<usize, EmitError> {
    match module.custom_sections_at(insertion_point) {
        None => Ok(0),
        Some(sections) => emit_repeated(sections, output, emit_custom_section),
    }
}
pub fn emit_custom_sections < O : Write > ( module : & Module , insertion_point : ModuleSection , output : & mut O , ) -> Result < usize , EmitError > { match module . custom_sections_at ( insertion_point ) { None => Ok ( 0 ) , Some ( sections ) => emit_repeated ( sections , output , emit_custom_section ) , } }
Emits the custom section to the output.
Emits the custom section to the output .
module
&Module
insertion_point
ModuleSection
output
&mut O
module
&Module
insertion_point
ModuleSection
output
&mut O