pub struct IndexRegistry { /* private fields */ }Expand description
Index registry: maps declared index names and typed Nat-range identities to IndexDef.
Implementations§
Source§impl IndexRegistry
impl IndexRegistry
Sourcepub fn get_index(&self, name: &str) -> Option<&IndexDef>
pub fn get_index(&self, name: &str) -> Option<&IndexDef>
Look up a declared index definition by name.
Sourcepub fn get_nat_range(&self, index: NatRangeIndex) -> Option<&IndexDef>
pub fn get_nat_range(&self, index: NatRangeIndex) -> Option<&IndexDef>
Look up a compiler-generated Nat range index by typed identity.
Sourcepub fn all_indexes(&self) -> impl Iterator<Item = &IndexDef>
pub fn all_indexes(&self) -> impl Iterator<Item = &IndexDef>
Iterate over all index definitions.
Trait Implementations§
Source§impl Clone for IndexRegistry
impl Clone for IndexRegistry
Source§fn clone(&self) -> IndexRegistry
fn clone(&self) -> IndexRegistry
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 Freeze for IndexRegistry
impl RefUnwindSafe for IndexRegistry
impl Send for IndexRegistry
impl Sync for IndexRegistry
impl Unpin for IndexRegistry
impl UnsafeUnpin for IndexRegistry
impl UnwindSafe for IndexRegistry
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