pub struct RangedIndexReadOnly<Tbl: Table, IndexType, Idx: Index> { /* private fields */ }Expand description
A read-only handle to a B-tree index.
This is the read-only version of RangedIndex.
It mirrors RangedIndex but exposes only .filter(..), not .delete(..).
It is used by {table}__ViewHandle to keep view code read-only at compile time.
Note, the Tbl generic is the read-write table handle {table}__TableHandle.
This is because read-only indexes still need Table metadata.
The view handle itself deliberately does not implement Table.
Implementations§
Auto Trait Implementations§
impl<Tbl, IndexType, Idx> Freeze for RangedIndexReadOnly<Tbl, IndexType, Idx>
impl<Tbl, IndexType, Idx> RefUnwindSafe for RangedIndexReadOnly<Tbl, IndexType, Idx>
impl<Tbl, IndexType, Idx> Send for RangedIndexReadOnly<Tbl, IndexType, Idx>
impl<Tbl, IndexType, Idx> Sync for RangedIndexReadOnly<Tbl, IndexType, Idx>
impl<Tbl, IndexType, Idx> Unpin for RangedIndexReadOnly<Tbl, IndexType, Idx>
impl<Tbl, IndexType, Idx> UnwindSafe for RangedIndexReadOnly<Tbl, IndexType, Idx>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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