Skip to main content

type_id_fields

Function type_id_fields 

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

Gets the number of fields at the given variant_index represented by this TypeId.

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