pub struct FusedIterator<I: StorageIterator> { /* private fields */ }Expand description
A wrapper around existing iterator, will prevent users from calling next when the iterator is
invalid. If an iterator is already invalid, next does not do anything. If next returns an error,
is_valid should return false, and next should always return an error.
Implementations§
Source§impl<I: StorageIterator> FusedIterator<I>
impl<I: StorageIterator> FusedIterator<I>
Trait Implementations§
Source§impl<I: StorageIterator> StorageIterator for FusedIterator<I>
impl<I: StorageIterator> StorageIterator for FusedIterator<I>
type KeyType<'a> = <I as StorageIterator>::KeyType<'a> where Self: 'a
Source§fn num_active_iterators(&self) -> usize
fn num_active_iterators(&self) -> usize
Number of underlying active iterators for this iterator.
Auto Trait Implementations§
impl<I> Freeze for FusedIterator<I>where
I: Freeze,
impl<I> RefUnwindSafe for FusedIterator<I>where
I: RefUnwindSafe,
impl<I> Send for FusedIterator<I>where
I: Send,
impl<I> Sync for FusedIterator<I>where
I: Sync,
impl<I> Unpin for FusedIterator<I>where
I: Unpin,
impl<I> UnwindSafe for FusedIterator<I>where
I: 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