🔬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.
- 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.
- FieldId
Experimental - Field representing type ID. Representing a field of a struct, tuple or enum variant.
- FnPtr
Experimental - Function pointer, e.g. fn(u8),
- Generic
Type Experimental - Compile-time type information about instantiated generic 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.
- Trait
Experimental - Compile-time type information about a trait.
- Trait
Impl Experimental - Info of a trait implementation, you can retrieve the vtable with Self::get_vtable
- Type
Experimental - Compile-time type information.
- Variant
Id Experimental - Variant representing type ID. Representing a variant of an enum.
Enums§
- Abi
Experimental - Abi of FnPtr
- Generic
Experimental - Compile-time type information about instantiated generics of structs, enum and union variants.
- Type
Kind Experimental - Compile-time type information.