pub struct SecondaryIndexRegistry { /* private fields */ }Expand description
Deterministically ordered runtime definitions supplied when opening an indexed map.
Implementations§
Source§impl SecondaryIndexRegistry
impl SecondaryIndexRegistry
Sourcepub fn register(self, index: SecondaryIndex) -> Result<Self, Error>
pub fn register(self, index: SecondaryIndex) -> Result<Self, Error>
Register one definition, rejecting duplicate logical names.
Sourcepub fn get(&self, name: &[u8]) -> Option<&SecondaryIndex>
pub fn get(&self, name: &[u8]) -> Option<&SecondaryIndex>
Borrow a definition by its exact raw name.
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = &SecondaryIndex>
pub fn iter(&self) -> impl ExactSizeIterator<Item = &SecondaryIndex>
Iterate definitions in raw-name order.
Trait Implementations§
Source§impl Clone for SecondaryIndexRegistry
impl Clone for SecondaryIndexRegistry
Source§fn clone(&self) -> SecondaryIndexRegistry
fn clone(&self) -> SecondaryIndexRegistry
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 moreSource§impl Debug for SecondaryIndexRegistry
impl Debug for SecondaryIndexRegistry
Source§impl Default for SecondaryIndexRegistry
impl Default for SecondaryIndexRegistry
Source§fn default() -> SecondaryIndexRegistry
fn default() -> SecondaryIndexRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SecondaryIndexRegistry
impl !UnwindSafe for SecondaryIndexRegistry
impl Freeze for SecondaryIndexRegistry
impl Send for SecondaryIndexRegistry
impl Sync for SecondaryIndexRegistry
impl Unpin for SecondaryIndexRegistry
impl UnsafeUnpin for SecondaryIndexRegistry
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