Trait wagon_utils::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§
sourcefn peek_unwrap(&'a mut self) -> &T
fn peek_unwrap(&'a mut self) -> &T
See next_unwrap
.
Object Safety§
This trait is not object safe.