RangedIndexReadOnly

Struct RangedIndexReadOnly 

Source
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§

Source§

impl<Tbl: Table, IndexType, Idx: Index> RangedIndexReadOnly<Tbl, IndexType, Idx>

Source

pub fn filter<B, K>(&self, b: B) -> impl Iterator<Item = Tbl::Row>
where B: IndexScanRangeBounds<IndexType, K>,

Auto Trait Implementations§

§

impl<Tbl, IndexType, Idx> Freeze for RangedIndexReadOnly<Tbl, IndexType, Idx>

§

impl<Tbl, IndexType, Idx> RefUnwindSafe for RangedIndexReadOnly<Tbl, IndexType, Idx>
where Tbl: RefUnwindSafe, IndexType: RefUnwindSafe, Idx: RefUnwindSafe,

§

impl<Tbl, IndexType, Idx> Send for RangedIndexReadOnly<Tbl, IndexType, Idx>
where Tbl: Send, IndexType: Send, Idx: Send,

§

impl<Tbl, IndexType, Idx> Sync for RangedIndexReadOnly<Tbl, IndexType, Idx>
where Tbl: Sync, IndexType: Sync, Idx: Sync,

§

impl<Tbl, IndexType, Idx> Unpin for RangedIndexReadOnly<Tbl, IndexType, Idx>
where Tbl: Unpin, IndexType: Unpin, Idx: Unpin,

§

impl<Tbl, IndexType, Idx> UnwindSafe for RangedIndexReadOnly<Tbl, IndexType, Idx>
where Tbl: UnwindSafe, IndexType: UnwindSafe, Idx: UnwindSafe,

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V