🔬This is a nightly-only experimental API. (
type_info #146922)Expand description
MVP for exposing compile-time information about types in a runtime or const-eval processable way.
Structs§
- Array
Experimental - Compile-time type information about arrays.
- Bool
Experimental - Compile-time type information about
bool. - Char
Experimental - Compile-time type information about
char. - Const
Experimental - Compile-time type information about generic const parameters.
- DynTrait
Experimental - Compile-time type information about dynamic traits. FIXME(#146922): Add super traits and generics
- DynTrait
Predicate Experimental - Compile-time type information about a dynamic trait predicate.
- Enum
Experimental - Compile-time type information about enums.
- Field
Experimental - Compile-time type information about fields of tuples, structs and enum variants.
- Float
Experimental - Compile-time type information about floating-point types.
- Generic
Type Experimental - Compile-time type information about instantiated generic types.
- Int
Experimental - Compile-time type information about signed and unsigned integer types.
- Lifetime
Experimental - Compile-time type information about generic lifetimes.
- Pointer
Experimental - Compile-time type information about pointers.
- Reference
Experimental - Compile-time type information about references.
- Slice
Experimental - Compile-time type information about slices.
- Str
Experimental - Compile-time type information about string slice types.
- Struct
Experimental - Compile-time type information about arrays.
- Trait
Experimental - Compile-time type information about a trait.
- Tuple
Experimental - Compile-time type information about tuples.
- Type
Experimental - Compile-time type information.
- Union
Experimental - Compile-time type information about unions.
- Variant
Experimental - Compile-time type information about variants of enums.