pub struct CapabilityIndexInner { /* private fields */ }Expand description
Secondary index maintained alongside the primary
(class, node) → CapabilityMembership store. Three
inverted-index dimensions — by tag, by region, by state —
matching the plan’s CapabilityIndexInner shape. Powers the
fast path for the most common query shapes (find-by-tag,
find-in-region, find-by-state) without scanning the full
store. Composite queries pick the most selective indexed
dimension and filter the others in-memory.
Trait Implementations§
Source§impl Debug for CapabilityIndexInner
impl Debug for CapabilityIndexInner
Source§impl Default for CapabilityIndexInner
impl Default for CapabilityIndexInner
Source§fn default() -> CapabilityIndexInner
fn default() -> CapabilityIndexInner
Returns the “default value” for a type. Read more
Source§impl FoldIndex<CapabilityFold> for CapabilityIndexInner
impl FoldIndex<CapabilityFold> for CapabilityIndexInner
Source§fn on_insert(&mut self, key: &(u64, NodeId), payload: &CapabilityMembership)
fn on_insert(&mut self, key: &(u64, NodeId), payload: &CapabilityMembership)
Called after an
MergeAction::Insert or
MergeAction::Replace commits to the primary store.
For Replace, the previous payload was already passed
to Self::on_remove.Source§fn on_remove(&mut self, key: &(u64, NodeId), payload: &CapabilityMembership)
fn on_remove(&mut self, key: &(u64, NodeId), payload: &CapabilityMembership)
Called before an
MergeAction::Replace or an
super::Fold::evict_node eviction drops the entry
from the primary store, with the payload that’s about
to be removed.Source§fn clear(&mut self)
fn clear(&mut self)
Drop every cached relation. Called by
super::Fold::restore before re-populating from a
snapshot.Auto Trait Implementations§
impl Freeze for CapabilityIndexInner
impl RefUnwindSafe for CapabilityIndexInner
impl Send for CapabilityIndexInner
impl Sync for CapabilityIndexInner
impl Unpin for CapabilityIndexInner
impl UnsafeUnpin for CapabilityIndexInner
impl UnwindSafe for CapabilityIndexInner
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