trait OneShot { }Expand description
Specialization trait for iterator types that never return more than one item.
Note that we still have to deal with the possibility that the iterator was already exhausted before it came into our control.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".