This crate provides a machinery to allow your types "reified" later; i.e. any external crate can use the definition of the type!
This consists of two major parts:
Reifytrait - providesT::reify()static method that returns the definition of typeTasDeriveInput.- It also comes with
ReifyStructandReifyEnumthat is specialized to structs and enums.
- It also comes with
Reifyderive macro - automatically derivesReifyand related specialized types.
With this crate, you can mimic the reification mechanism in TemplateHaskell. Current limitations:
- Only types with
Reifyimpl can be reified. - It uses
ToTokensandparse_quote!under the hood, so the performance can be poor for large types.