pub struct NamespaceState<H: Hypervector = HVec10240> {
pub concepts: HashMap<String, Concept<H>>,
pub associations: HashMap<String, HashMap<String, (f32, u64)>>,
pub index: Box<dyn AnnIndex<H>>,
/* private fields */
}Expand description
State for a single namespace in the singularity engine.
Fields§
§concepts: HashMap<String, Concept<H>>§associations: HashMap<String, HashMap<String, (f32, u64)>>§index: Box<dyn AnnIndex<H>>Implementations§
Source§impl<H: Hypervector> NamespaceState<H>
impl<H: Hypervector> NamespaceState<H>
pub fn new( config: &SingularityConfig, index: Box<dyn AnnIndex<H>>, cache_metrics: Arc<CacheMetrics>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<H = HVec10240> !Freeze for NamespaceState<H>
impl<H = HVec10240> !RefUnwindSafe for NamespaceState<H>
impl<H = HVec10240> !UnwindSafe for NamespaceState<H>
impl<H> Send for NamespaceState<H>
impl<H> Sync for NamespaceState<H>
impl<H> Unpin for NamespaceState<H>where
H: Unpin,
impl<H> UnsafeUnpin for NamespaceState<H>
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