I have a generic function that needs to write (non-ASCII) bytes to an io::Write writer.
The shortest way to reliably write a single byte provided by the io::Write trait is AFAIK writer.write_all(&[0])?. That is a bit long and syntactically noisy to write in many places.
Does Rust's stdlib have a macro or an extension trait with a convenience method that is shorter to write?