Re:Rust is the future, C is the new Assembly: Josh Triplett ...
by steveklabnik on Wednesday August 28, 2019 @02:39PM
(#20822674)
Ah, ah, I see now. Yes, right.
This is exactly why I couched my last paragraph the way I did, heh.
The reason I can't just iterate by value is that I'd be consuming data that is already held by the map. The buffer is defined thus:
bitstream_io::BitWriter's [1] into_writer consumes itself: [1] https://docs.rs/bitstream-io/0.8.2/bitstream_io/write/struct...