Skip to main content

type_id_variant_docs

Function type_id_variant_docs 

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

Gets the raw documentation attributes of the variant represented by the base TypeId and variant_idx.

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