Skip to main content

Module type_info

Module type_info 

Source
🔬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§

ArrayExperimental
Compile-time type information about arrays.
ConstExperimental
Compile-time type information about generic const parameters.
DynTraitExperimental
Compile-time type information about dynamic traits. FIXME(#146922): Add super traits and generics
DynTraitPredicateExperimental
Compile-time type information about a dynamic trait predicate.
FieldIdExperimental
Field representing type ID. Representing a field of a struct, tuple or enum variant.
FnPtrExperimental
Function pointer, e.g. fn(u8),
GenericTypeExperimental
Compile-time type information about instantiated generic types.
LifetimeExperimental
Compile-time type information about generic lifetimes.
PointerExperimental
Compile-time type information about pointers.
ReferenceExperimental
Compile-time type information about references.
SliceExperimental
Compile-time type information about slices.
StrExperimental
Compile-time type information about string slice types.
TraitExperimental
Compile-time type information about a trait.
TraitImplExperimental
Info of a trait implementation, you can retrieve the vtable with Self::get_vtable
TypeExperimental
Compile-time type information.
VariantIdExperimental
Variant representing type ID. Representing a variant of an enum.

Enums§

AbiExperimental
Abi of FnPtr
GenericExperimental
Compile-time type information about instantiated generics of structs, enum and union variants.
TypeKindExperimental
Compile-time type information.

Functions§

ofExperimental
Returns the TypeId of the generic type parameter.