pub fn type_expr<T: 'static>() -> TypeExprExpand description
Returns the best-effort TypeExpr for a Rust type T.
Resolution order:
register_type::<T>(...)- Built-in primitives and common shims (e.g.
Vec<u8>asBytes) Opaque("rust:<type_name>")fallback
use daedalus_data::typing::type_expr;
let ty = type_expr::<String>();
assert!(format!("{ty:?}").contains("String"));