pub struct LimitIterator<I: RowIterator> { /* private fields */ }Expand description
Iterator that applies LIMIT and OFFSET constraints.
This iterator skips the first offset rows and yields at most limit rows.
It provides early termination - once the limit is reached, no more rows
are requested from the input.
With tie_keys (FETCH … WITH TIES, issue #152) the iterator keeps
yielding rows past the limit while their ORDER BY sort key compares equal
to the final counted row’s key. Rows discarded by OFFSET never revive,
even when they are peers of the boundary row.
Implementations§
Source§impl<I: RowIterator> LimitIterator<I>
impl<I: RowIterator> LimitIterator<I>
Trait Implementations§
Source§impl<I: RowIterator> RowIterator for LimitIterator<I>
impl<I: RowIterator> RowIterator for LimitIterator<I>
Auto Trait Implementations§
impl<I> Freeze for LimitIterator<I>where
I: Freeze,
impl<I> RefUnwindSafe for LimitIterator<I>where
I: RefUnwindSafe,
impl<I> Send for LimitIterator<I>where
I: Send,
impl<I> Sync for LimitIterator<I>where
I: Sync,
impl<I> Unpin for LimitIterator<I>where
I: Unpin,
impl<I> UnsafeUnpin for LimitIterator<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for LimitIterator<I>where
I: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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