pub struct SecondaryIndex { /* private fields */ }Expand description
One immutable runtime index definition.
Implementations§
Source§impl SecondaryIndex
impl SecondaryIndex
Sourcepub fn non_unique<N, I, F>(
name: N,
generation: u64,
extractor_id: I,
extractor: F,
) -> Result<Self, Error>
pub fn non_unique<N, I, F>( name: N, generation: u64, extractor_id: I, extractor: F, ) -> Result<Self, Error>
Define a non-unique keys-only index from a zero-or-more term callback.
Sourcepub fn builder<N, I>(
name: N,
generation: u64,
extractor_id: I,
) -> SecondaryIndexBuilder
pub fn builder<N, I>( name: N, generation: u64, extractor_id: I, ) -> SecondaryIndexBuilder
Start a general runtime definition builder.
Sourcepub fn generation(&self) -> u64
pub fn generation(&self) -> u64
Monotonically increasing semantic definition generation.
Sourcepub fn extractor_id(&self) -> &str
pub fn extractor_id(&self) -> &str
Application-controlled identity for deterministic extractor semantics.
Sourcepub fn projection(&self) -> IndexProjection
pub fn projection(&self) -> IndexProjection
Projection mode for physical index values.
Sourcepub fn limits(&self) -> &SecondaryIndexLimits
pub fn limits(&self) -> &SecondaryIndexLimits
Resource bounds attached to this definition.
Trait Implementations§
Source§impl Clone for SecondaryIndex
impl Clone for SecondaryIndex
Source§fn clone(&self) -> SecondaryIndex
fn clone(&self) -> SecondaryIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SecondaryIndex
impl !UnwindSafe for SecondaryIndex
impl Freeze for SecondaryIndex
impl Send for SecondaryIndex
impl Sync for SecondaryIndex
impl Unpin for SecondaryIndex
impl UnsafeUnpin for SecondaryIndex
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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