Re:Writing a JPEG Decoder in Rust – Part 2: Implementation I
by cbreeden on Friday August 19, 2016 @08:04PM
(#12324361)
Which is what itertools does I believe https://bluss.github.io/rust-itertools/doc/itertools/struct....
Re:Writing a JPEG Decoder in Rust – Part 2: Implementation I
by steveklabnik on Friday August 19, 2016 @01:52PM
(#12321922)
Oh right, I see now.
Re:Writing a JPEG Decoder in Rust – Part 2: Implementation I
by __s on Friday August 19, 2016 @08:41PM
(#12324467)
This technique is used a lot by specs: https://github.com/slide-rs/specs/blob/master/src/join.rs#L5...
Nah, you'd just implement it as an impl over and over on tuples of reasonable size (up to 16 or so).
It wouldn't be elegant, but it'd work in practice.