is there a rust trait for "this type can be written to an i/o stream as a sequence of bytes"
The slices could be backed by a growable buffer. It makes very few assumptions in its API.
-
-
but you can't push to a &mut [u8], right?
-
the [u8] might be owned by a Vec but if you're only given a slice reference you can't append to it
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.