Skip to main content

type_id_generics

Function type_id_generics 

Source
pub const fn type_id_generics(_id: TypeId) -> &'static [Generic]
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

Returns the list of generic args on this type. Only meaningful for Adts, closures, … Everything else returns an empty slice.