rmp::encode

Function write_uint8

Source
pub fn write_uint8<W: RmpWrite>(
    wr: &mut W,
    val: u8,
) -> Result<Marker, ValueWriteError<W::Error>>
Expand description

Encodes and attempts to write an u8 value into the given write using the most efficient representation, returning the marker used.

See write_uint for more info.