Skip to main content

type_id_variants

Function type_id_variants 

Source
pub const fn type_id_variants(_id: TypeId) -> usize
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

Gets the number of variants of the type represented by this TypeId.

The more user-friendly version of this intrinsic is core::any::TypeId::variants.