pub struct TableCursor<'p> { /* private fields */ }Expand description
A cursor over a table b-tree, iterating rows in ascending rowid order.
Implementations§
Source§impl<'p> TableCursor<'p>
impl<'p> TableCursor<'p>
Sourcepub fn new(pager: &'p dyn PageSource, root: u32) -> TableCursor<'p>
pub fn new(pager: &'p dyn PageSource, root: u32) -> TableCursor<'p>
Sourcepub fn last(&mut self) -> Result<bool>
pub fn last(&mut self) -> Result<bool>
Position at the last (highest-rowid) row. Returns false if empty. Useful
for finding the next auto-assigned rowid in O(height).
Sourcepub fn first(&mut self) -> Result<bool>
pub fn first(&mut self) -> Result<bool>
Position at the first (lowest-rowid) row. Returns false if the table is
empty.
Auto Trait Implementations§
impl<'p> !RefUnwindSafe for TableCursor<'p>
impl<'p> !Send for TableCursor<'p>
impl<'p> !Sync for TableCursor<'p>
impl<'p> !UnwindSafe for TableCursor<'p>
impl<'p> Freeze for TableCursor<'p>
impl<'p> Unpin for TableCursor<'p>
impl<'p> UnsafeUnpin for TableCursor<'p>
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