Skip to main content

type_id_variant_reflected_attrs

Function type_id_variant_reflected_attrs 

Source
pub const fn type_id_variant_reflected_attrs(
    _base: TypeId,
    _variant_index: usize,
) -> &'static [&'static str]
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

Returns the reflection attributes given a the variant represented by the base TypeId and variant_idx.

The more user-friendly version of this intrinsic is core::mem::type_info::VariantId::reflected_attrs.