Function clippy_utils::ty::read_explicit_enum_value
source · pub fn read_explicit_enum_value(tcx: TyCtxt<'_>, id: DefId) -> Option<EnumValue>
Expand description
Attempts to read the given constant as though it were an enum value.