3 comments

[ 0.22 ms ] story [ 14.3 ms ] thread
This would be a great addition. After non lexical lifetimes this is probably the most awaited post-1.0 feature.
What's OIBIT?

And why is a new sigil required, instead of:

     fn produce_iter_static<I: Iterator<u8>>() -> I
>What's OIBIT?

Opt in built in trait. These are traits that implemented for everything by default. They are generally marker traits for some kind of functionality. The standard library has Sync (shared memory thread-safe) and Send (thread safe to send over a channel). Some more detail can be found in the RFC[1] that implemented them.

[1] https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-...