Closed
Description
If we end up removing Seek
from MemWriter
as suggested in #15915, there's not much reason left to having an explicit MemWriter
. Instead, we could directly implement Writer
on Vec<u8>
. Likewise, we could do the same with BufWriter
/BufReader
and &[u8]
if we take advantage of the fact that neither of them return the slice, so they can shrink the slice as it is read or written to.
Activity
masklinn commentedon Dec 7, 2014
Hasn't this been mostly fixed by #18885 (Writer for Vec) and #18980 (Reader for &[u8], Writer for &mut [u8])?
steveklabnik commentedon Jan 24, 2015
Yes, and anything left would be an RFC now.
Auto merge of rust-lang#15946 - roife:master, r=Veykril