Re:Zero-cost futures in Rust
by Ygg2 on Thursday August 11, 2016 @01:06PM
(#12269928)
Rust couldn't return Traits since they vary in return Size.So using couple of chain and maps would result in following syntax.
Now, you can write:
and be done with it.
[ Parent
| on HN ]
That's awesome. I've been banging my head against the wall trying to implement a Drain iterator for a tree structure and it tries to recurse. I ended up with things like your Chain<Map...>> and was banging my head against the wall over it.