Re:Why Rust closures are somewhat hard
by steveklabnik on Tuesday September 11, 2018 @01:02PM
(#17961449)
Ah yeah, byteorder would be the right call.
> Perhaps Steve, for the benefit of myself and thread parent, you could point us to some better-edited literature for the various iterator methods?
I used that page to find this. I knew it was "chunks" or "windows" or something, so I just looked at them (I guessed windows, but I was wrong).
I love Rustdoc, but I really wish it wasn't so obtuse when it came to casually browsing the various iterator traits. Perhaps Steve, for the benefit of myself and thread parent, you could point us to some better-edited literature for the various iterator methods?
P.S: just wanted to add, if I were faced w/ this issue in production code, I likely would've just reached for the excellent byteorder[2] crate. It's so useful for "bit twiddling" like this.
[1]: https://play.rust-lang.org/?gist=4b4ff7263d9744caeb8bacd4c0d...
[2]: https://docs.rs/byteorder/1.2.6/byteorder/trait.ReadBytesExt...