pub struct IndexInfo {
pub key_info: IndexKeyInfo,
pub has_rowid: bool,
pub num_cols: usize,
pub is_unique: bool,
}Expand description
Metadata about an index, used for handling and comparing index keys.
This struct provides information about the sorting order of columns, whether the index includes a row ID, and the total number of columns in the index.
Fields§
§key_info: IndexKeyInfoSpecifies the sorting order (ascending or descending) for each column in the index.
has_rowid: boolIndicates whether the index includes a row ID column.
num_cols: usizeThe total number of columns in the index, including the row ID column if present.
is_unique: boolIndicates whether index rows should be unique.
Implementations§
Source§impl IndexInfo
impl IndexInfo
pub fn key_info_in<A: ConcurrentAllocator>(alloc: A) -> IndexKeyInfo
pub fn key_info_from_iter_in<A, I>( key_info: I, _alloc: A, ) -> Result<IndexKeyInfo, TryReserveError>
pub fn new<I>(
key_info: I,
has_rowid: bool,
num_cols: usize,
is_unique: bool,
) -> Result<Self, TryReserveError>where
I: IntoIterator<Item = KeyInfo>,
pub fn new_in<A, I>( key_info: I, has_rowid: bool, num_cols: usize, is_unique: bool, alloc: A, ) -> Result<Self, TryReserveError>
pub fn new_from_index(index: &Index) -> Result<Self, TryReserveError>
pub fn new_from_index_in<A: ConcurrentAllocator>( index: &Index, alloc: A, ) -> Result<Self, TryReserveError>
Trait Implementations§
impl Eq for IndexInfo
impl StructuralPartialEq for IndexInfo
Auto Trait Implementations§
impl Freeze for IndexInfo
impl RefUnwindSafe for IndexInfo
impl Send for IndexInfo
impl Sync for IndexInfo
impl Unpin for IndexInfo
impl UnsafeUnpin for IndexInfo
impl UnwindSafe for IndexInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
Source§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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 more