pub struct CoalescingIterator<I> { /* private fields */ }
Implementations§
Source§impl<I: LayerIterator<AllocatorKey, AllocatorValue>> CoalescingIterator<I>
impl<I: LayerIterator<AllocatorKey, AllocatorValue>> CoalescingIterator<I>
pub async fn new(iter: I) -> Result<CoalescingIterator<I>, Error>
Trait Implementations§
Source§impl<I: LayerIterator<AllocatorKey, AllocatorValue>> LayerIterator<AllocatorKeyV32, AllocatorValueV32> for CoalescingIterator<I>
impl<I: LayerIterator<AllocatorKey, AllocatorValue>> LayerIterator<AllocatorKeyV32, AllocatorValueV32> for CoalescingIterator<I>
Source§fn advance<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn advance<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Advances the iterator.
Source§fn get(&self) -> Option<ItemRef<'_, AllocatorKey, AllocatorValue>>
fn get(&self) -> Option<ItemRef<'_, AllocatorKey, AllocatorValue>>
Returns the current item. This will be None if called when the iterator is first crated i.e.
before either seek or advance has been called, and None if the iterator has reached the end
of the layer.
Auto Trait Implementations§
impl<I> Freeze for CoalescingIterator<I>where
I: Freeze,
impl<I> RefUnwindSafe for CoalescingIterator<I>where
I: RefUnwindSafe,
impl<I> Send for CoalescingIterator<I>where
I: Send,
impl<I> Sync for CoalescingIterator<I>where
I: Sync,
impl<I> Unpin for CoalescingIterator<I>where
I: Unpin,
impl<I> UnwindSafe for CoalescingIterator<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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more