Structs§
Statics§
- ENUM_
INTRINSICS_ πNON_ ENUMS - The
enum_intrinsics_non_enums
lint detects calls to intrinsic functions that require an enum (core::mem::discriminant
,core::mem::variant_count
), but are called with a non-enum type.
Functions§
- enforce_
mem_ πdiscriminant - enforce_
mem_ πvariant_ count - is_
non_ πenum - Returns
true
if we know for sure that the given type is not an enum. Note that for cases where the type is generic, we canβt be certain if it will be an enum so we have to assume that it is.