/// Emits a single byte to the output.
///
/// See https://webassembly.github.io/spec/core/binary/values.html#bytes
Emits a single byte to the output.
Emits a single byte to the output .
pub fn emit_byte<T: Borrow<u8>, O: Write + ?Sized>(
    byte: T,
    output: &mut O,
) -> Result<usize, EmitError> {
    let bytes = [*byte.borrow()];
    output.write_all(&bytes)?;
    Ok(bytes.len())
}
pub fn emit_byte < T : Borrow < u8 > , O : Write + ? Sized > ( byte : T , output : & mut O , ) -> Result < usize , EmitError > { let bytes = [ * byte . borrow ( ) ] ; output . write_all ( & bytes ) ? ; Ok ( bytes . len ( ) ) }
Emits a single byte to the output.
Emits a single byte to the output .
byte
T
output
&mut O