Type-level slices of primitives.
Rust permits certain constant parameters in generics:
;
Presently these are limited to the primitive integers, [prim@char] and [prim@bool],
so e.g slices of different chars cannot be represented.
;
type Message = ;
This crate emulates the above with recursive types,
and the TypeSlice trait.
type Message = char!;
// or, equivalently
type Message = from_str!;
You can inspect the message at const time or runtime through the List
in TypeSlice::LIST:
use TypeSlice;
assert_eq!;