Module type_info
MVP for exposing compile-time information about types in a runtime or const-eval processable way.
Structs
- Array Compile-time type information about arrays.
-
Bool
Compile-time type information about
bool. -
Char
Compile-time type information about
char. - Const Compile-time type information about generic const parameters.
- DynTrait Compile-time type information about dynamic traits. FIXME(#146922): Add super traits and generics
- DynTraitPredicate Compile-time type information about a dynamic trait predicate.
- Enum Compile-time type information about enums.
- Field Compile-time type information about fields of tuples, structs and enum variants.
- Float Compile-time type information about floating-point types.
- FnPtr Function pointer, e.g. fn(u8),
- GenericType Compile-time type information about instantiated generic types.
- Int Compile-time type information about signed and unsigned integer types.
- Lifetime Compile-time type information about generic lifetimes.
- Pointer Compile-time type information about pointers.
- Reference Compile-time type information about references.
- Slice Compile-time type information about slices.
- Str Compile-time type information about string slice types.
- Struct Compile-time type information about structs.
- Trait Compile-time type information about a trait.
- TraitImpl Info of a trait implementation, you can retrieve the vtable with [Self::get_vtable]
- Tuple Compile-time type information about tuples.
- Type Compile-time type information.
- Union Compile-time type information about unions.
- Variant Compile-time type information about variants of enums.