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