Skip to main content

AnyValue

Type Alias AnyValue 

Source
pub type AnyValue = Rc<dyn Any>;
Expand description

The erased in-process value type — the Rust analogue of TS’s unknown (value representation decision, per-language impl, see CLEAN-SLATE.md).

Rc<dyn Any> so one DATA payload fans out to N sinks + the node cache + prev_data sharing a single allocation via refcount (single-thread D22 ⇒ Rc, not Arc; dyn Any, not dyn Any + Send + Sync). The substrate moves values erased; the user fn downcasts. A typed Node<T> facade re-types the boundary.

Aliased Type§

pub struct AnyValue { /* private fields */ }