Enum alloc::collections::btree::merge_iter::Peeked
source · enum Peeked<I: Iterator> {
A(I::Item),
B(I::Item),
}
Expand description
Benchmarks faster than wrapping both iterators in a Peekable, probably because we can afford to impose a FusedIterator bound.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<I> RefUnwindSafe for Peeked<I>where <I as Iterator>::Item: RefUnwindSafe,
impl<I> Send for Peeked<I>where <I as Iterator>::Item: Send,
impl<I> Sync for Peeked<I>where <I as Iterator>::Item: Sync,
impl<I> Unpin for Peeked<I>where <I as Iterator>::Item: Unpin,
impl<I> UnwindSafe for Peeked<I>where <I as Iterator>::Item: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more