Helper code meant to be used by the code generated through usage of macros
This module defines helpers for defining singletons and associated enum types. A singleton is a type with one possible value. It is used mainly for a type level programming purposes.
Internal helper for
Computes a cartesian product of the provided input.
Defines singletons and an associated enum type.
It expands to the same as
Defines an associated enum type for predefined singletons.
Defines singleton types. For the following input:
Generates a newtype wrapper for the provided types. It also generates a lot of impls, including Copy, Clone, Debug, Default, Display, From, Into, Deref, and DerefMut.
The same as
Replaces the first argument with the second one. It is useful when creating macros which match
a pattern and you want to generate as many repetitions of a token as there was matches. For
example, when matching
This module implements the