pub struct BTreeCursor<P: PageStore> { /* private fields */ }Expand description
B+ Tree cursor for iteration
Implementations§
Source§impl<P: PageStore> BTreeCursor<P>
impl<P: PageStore> BTreeCursor<P>
Sourcepub fn peek_key(&mut self) -> BTreeResult<Option<Vec<u8>>>
pub fn peek_key(&mut self) -> BTreeResult<Option<Vec<u8>>>
Inspect the next key without materializing its value or advancing.
Sourcepub fn skip_next(&mut self) -> BTreeResult<bool>
pub fn skip_next(&mut self) -> BTreeResult<bool>
Skip a shadowed or deleted base record without reading its overflow value.
Sourcepub fn next_with_budget(
&mut self,
limit_bytes: usize,
) -> BTreeResult<Option<(Vec<u8>, Vec<u8>)>>
pub fn next_with_budget( &mut self, limit_bytes: usize, ) -> BTreeResult<Option<(Vec<u8>, Vec<u8>)>>
Read one value within the caller’s materialization allowance.
Auto Trait Implementations§
impl<P> Forget for BTreeCursor<P>
impl<P> Freeze for BTreeCursor<P>
impl<P> RefUnwindSafe for BTreeCursor<P>where
Arc<P>: RefUnwindSafe,
impl<P> Send for BTreeCursor<P>
impl<P> Sync for BTreeCursor<P>
impl<P> Unpin for BTreeCursor<P>
impl<P> UnsafeUnpin for BTreeCursor<P>where
Arc<P>: UnsafeUnpin,
impl<P> UnwindSafe for BTreeCursor<P>where
Arc<P>: 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> 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