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

Object Safety§

This trait is not object safe.

Implementors§