Function variant_non_exhaustive

pub const fn variant_non_exhaustive(base: TypeId, variant: usize) -> bool

Returns true when the variant represented by the base TypeId and variant_idx is non exhaustive.

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