Trait UnsafePeek

Source
pub trait UnsafePeek<'a, T, E: Debug + 'a>: Peek + Iterator<Item = Result<T, E>> {
    // Provided method
    fn peek_unwrap(&'a mut self) -> &T { ... }
}
Expand description

Same as UnsafeNext but intended for iterators that allow peeking (such as Peekable).

Provided Methods§

Source

fn peek_unwrap(&'a mut self) -> &T

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§