#[non_exhaustive]pub struct Stats {
pub facts: usize,
pub entities: usize,
pub terms: usize,
pub edges: usize,
pub vectors: usize,
pub next_fact: u32,
pub next_entity: u32,
pub db_uuid: u128,
pub pool_bytes: usize,
}Expand description
Engine size counters. Every field is an O(1) read; the
struct is #[non_exhaustive] so later stages (database identity
markers, HNSW state) can extend it without a breaking change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.facts: usizeFact records currently stored (live, closed, and tombstoned facts
awaiting maintain).
entities: usizeEntities.
terms: usizeInterned terms (tokens, tags, relations, normalized names).
edges: usizeDirected edges (each (src, rel, dst) counted once; the mirrored
in-arena is an internal detail).
vectors: usizeQuantized vector slots.
next_fact: u32The next fact id to be assigned. Ids below it are in use or burned (forgotten and purged) — never reissued.
next_entity: u32The next entity id to be assigned.
db_uuid: u128The database lineage identity (Config::db_uuid); 0 for an
unnamed database.
pool_bytes: usizeTotal bytes held by the engine’s pools (arenas, blob heaps, chunk pools, the term dictionary and the vector pool).
Trait Implementations§
impl Copy for Stats
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.