pub struct LeafCursor<'a, K: DataTrait + ?Sized, R: WeightTrait + ?Sized> { /* private fields */ }
Implementations§
Source§impl<'a, K: DataTrait + ?Sized, R: WeightTrait + ?Sized> LeafCursor<'a, K, R>
impl<'a, K: DataTrait + ?Sized, R: WeightTrait + ?Sized> LeafCursor<'a, K, R>
pub const fn new( pos: usize, storage: &'a Leaf<K, R>, bounds: (usize, usize), ) -> Self
pub fn seek_key_with(&mut self, predicate: &dyn Fn(&K) -> bool)
pub fn seek_key_with_reverse(&mut self, predicate: &dyn Fn(&K) -> bool)
pub fn current_key(&self) -> &'a K
pub fn current_diff(&self) -> &'a R
Trait Implementations§
Source§impl<K: DataTrait + ?Sized, R: WeightTrait + ?Sized> Clone for LeafCursor<'_, K, R>
impl<K: DataTrait + ?Sized, R: WeightTrait + ?Sized> Clone for LeafCursor<'_, K, R>
Source§impl<'s, K: DataTrait + ?Sized, R: WeightTrait + ?Sized> Cursor<'s> for LeafCursor<'s, K, R>
impl<'s, K: DataTrait + ?Sized, R: WeightTrait + ?Sized> Cursor<'s> for LeafCursor<'s, K, R>
Source§fn step_reverse(&mut self)
fn step_reverse(&mut self)
Move cursor back by one element.
Source§fn seek(&mut self, key: &K)
fn seek(&mut self, key: &K)
Advances the cursor until the location where key
would be expected.
Source§fn seek_reverse(&mut self, key: &K)
fn seek_reverse(&mut self, key: &K)
Move the cursor back until the location where key
would be expected.
Source§fn valid(&self) -> bool
fn valid(&self) -> bool
Returns true
if the cursor points at valid data. Returns false
if
the cursor is exhausted.
Source§fn fast_forward(&mut self)
fn fast_forward(&mut self)
Moves the cursor to the last position.
Source§fn reposition(&mut self, lower: usize, upper: usize)
fn reposition(&mut self, lower: usize, upper: usize)
Repositions the cursor to a different range of values.
type ValueCursor = ()
fn keys(&self) -> usize
Source§impl<'a, K: Debug + DataTrait + ?Sized, R: Debug + WeightTrait + ?Sized> Debug for LeafCursor<'a, K, R>
impl<'a, K: Debug + DataTrait + ?Sized, R: Debug + WeightTrait + ?Sized> Debug for LeafCursor<'a, K, R>
Auto Trait Implementations§
impl<'a, K, R> Freeze for LeafCursor<'a, K, R>
impl<'a, K, R> !RefUnwindSafe for LeafCursor<'a, K, R>
impl<'a, K, R> Send for LeafCursor<'a, K, R>
impl<'a, K, R> Sync for LeafCursor<'a, K, R>
impl<'a, K, R> Unpin for LeafCursor<'a, K, R>
impl<'a, K, R> !UnwindSafe for LeafCursor<'a, K, R>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.