pub struct LengthFinder {
pub left: usize,
pub slot: u8,
pub parent: Option<Index>,
}
Expand description
A generic length finder
Fields§
§left: usize
§slot: u8
§parent: Option<Index>
Implementations§
Source§impl LengthFinder
impl LengthFinder
Trait Implementations§
Source§impl Default for LengthFinder
impl Default for LengthFinder
Source§impl<Elem: HasLength + Debug, B: BTreeTrait<Elem = Elem> + UseLengthFinder<B>> Query<B> for LengthFinder
impl<Elem: HasLength + Debug, B: BTreeTrait<Elem = Elem> + UseLengthFinder<B>> Query<B> for LengthFinder
type QueryArg = usize
fn init(target: &Self::QueryArg) -> Self
fn find_node( &mut self, _: &Self::QueryArg, child_caches: &[Child<B>], ) -> FindResult
Source§fn confirm_elem(
&mut self,
_: &Self::QueryArg,
elem: &<B as BTreeTrait>::Elem,
) -> (usize, bool)
fn confirm_elem( &mut self, _: &Self::QueryArg, elem: &<B as BTreeTrait>::Elem, ) -> (usize, bool)
Confirm the search result and returns (offset, found) Read more
Auto Trait Implementations§
impl Freeze for LengthFinder
impl RefUnwindSafe for LengthFinder
impl Send for LengthFinder
impl Sync for LengthFinder
impl Unpin for LengthFinder
impl UnwindSafe for LengthFinder
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