/// Emit a block type to the output.
///
/// See  https://webassembly.github.io/spec/core/binary/instructions.html#control-instructions
Emit a block type to the output.
Emit a block type to the output .
pub fn emit_block_type<O: Write + ?Sized>(
    kind: &BlockType,
    output: &mut O,
) -> Result<usize, EmitError> {
    match kind {
        BlockType::Index(index) => emit_i64(*index as i64, output),
        BlockType::ValueType(kind) => emit_value_type(kind, output),
        BlockType::None => emit_byte(0x40u8, output),
    }
}
pub fn emit_block_type < O : Write + ? Sized > ( kind : & BlockType , output : & mut O , ) -> Result < usize , EmitError > { match kind { BlockType :: Index ( index ) => emit_i64 ( * index as i64 , output ) , BlockType :: ValueType ( kind ) => emit_value_type ( kind , output ) , BlockType :: None => emit_byte ( 0x40u8 , output ) , } }
Emit a block type to the output.
Emit a block type to the output .
kind
&BlockType
output
&mut O