Module clippy_utils::consts
source · Structs§
Enums§
- A
LitKind
-like enum to fold constantExpr
s into. - The source of a constant value.
Traits§
Functions§
- Attempts to evaluate the expression as a constant.
- Attempts to check whether the expression is a constant representing an empty slice, str, array, etc…
- Attempts to evaluate an expression only if its value is not dependent on other items.
- Attempts to evaluate the expression as a constant.
- Parses a
LitKind
to aConstant
.