pub fn register_enum<T: 'static>(
variants: impl IntoIterator<Item = impl Into<String>>,
)Expand description
Register an enum (variants only) for Rust type T.
use daedalus_data::typing::{register_enum, lookup_type};
register_enum::<bool>(["Yes", "No"]);
assert!(lookup_type::<bool>().is_some());