pub struct NodeStorage {
pub count: u32,
pub activation: Vec<[FiniteF32; 4]>,
pub pagerank: Vec<FiniteF32>,
pub plasticity: Vec<PlasticityNode>,
pub label: Vec<InternedStr>,
pub node_type: Vec<NodeType>,
pub tags: Vec<SmallVec<[InternedStr; 6]>>,
pub last_modified: Vec<f64>,
pub change_frequency: Vec<FiniteF32>,
pub provenance: Vec<NodeProvenance>,
}Expand description
All per-node data in Struct-of-Arrays layout for cache-friendly access.
Fields§
§count: u32§activation: Vec<[FiniteF32; 4]>Activation levels [structural, semantic, temporal, causal] per node. Packed as [f32; 4] because all 4 dims accessed together per node.
pagerank: Vec<FiniteF32>PageRank score, computed once at finalize.
plasticity: Vec<PlasticityNode>§label: Vec<InternedStr>Interned label index.
node_type: Vec<NodeType>Node type tag.
Tag set: SmallVec of interned string indices.
last_modified: Vec<f64>Last modification time (Unix seconds).
change_frequency: Vec<FiniteF32>Change frequency normalised [0.0, 1.0].
provenance: Vec<NodeProvenance>Provenance / source metadata for cold-path inspection.
Implementations§
Source§impl NodeStorage
impl NodeStorage
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
Auto Trait Implementations§
impl Freeze for NodeStorage
impl RefUnwindSafe for NodeStorage
impl Send for NodeStorage
impl Sync for NodeStorage
impl Unpin for NodeStorage
impl UnsafeUnpin for NodeStorage
impl UnwindSafe for NodeStorage
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