KokaKiwi / rust-hex

A basic crate to encode values to hexadecimal representation. Originally extracted from rustc-serialize.
https://crates.io/crates/hex
Apache License 2.0
201 stars 55 forks source link

encode_to_string? #48

Open Nugine opened 4 years ago

Nugine commented 4 years ago

How to append hex-encoded bytes to a string without allocation?

It might like this:

pub fn encode_to_string(data: impl AsRef<[u8]>, output: &mut String)