pub fn register_type<T: 'static>(expr: TypeExpr)Expand description
Register a concrete TypeExpr for a Rust type T.
This is how applications/plugins can attach richer type information to structured payloads without requiring proc-macro hard-coding.
use daedalus_data::model::{TypeExpr, ValueType};
use daedalus_data::typing::{register_type, lookup_type};
register_type::<u16>(TypeExpr::Scalar(ValueType::U32));
assert!(lookup_type::<u16>().is_some());