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.
- 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.
- FieldId Field representing type ID. Representing a field of a struct, tuple or enum variant.
- FnPtr Function pointer, e.g. fn(u8),
- GenericType Compile-time type information about instantiated generic 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.
- Trait Compile-time type information about a trait.
- TraitImpl Info of a trait implementation, you can retrieve the vtable with [Self::get_vtable]
- Type Compile-time type information.
- VariantId Variant representing type ID. Representing a variant of an enum.
Enums
Functions
- of Returns the [TypeId] of the generic type parameter.