Expand description
§reify-reflect
Unified reification and reflection ecosystem for Rust.
This facade crate re-exports the core components of the ecosystem:
core:Reflecttrait,reifyfunction,Reifiedtoken,RuntimeValueenumnat: type-level naturals, booleans, and heterogeneous listsderive:#[derive(Reflect)]proc macrograph:Rc/Arcgraph reification and reconstructioncontext: runtime-synthesized trait instancesasync_trace: async computation step graph extraction- [
const_bridge]: runtime-to-const-generic dispatch (behindconst-reifyfeature)
§Feature Flags
serde(default): enables serde support forreify-graphandasync-reifyconst-reify: enables theconst_bridgemodule for runtime-to-const-generic dispatchfull: enables all features
§Quick Start
use reify_reflect::core::{Reflect, RuntimeValue};
use reify_reflect::nat::{S, Z};
type Three = S<S<S<Z>>>;
assert_eq!(Three::reflect(), RuntimeValue::Nat(3));Modules§
- async_
trace - Async computation tracing and step graph extraction.
- context
- Runtime-synthesized trait instances scoped to callbacks.
- core
- Core traits and types:
Reflect,reify,Reified,RuntimeValue. - graph
Rc<RefCell<T>>graph reification and reconstruction.- nat
- Type-level naturals (
Z,S), booleans (True,False), and heterogeneous lists (HNil,HCons).