Module clippy_utils::consts
source · Structs
Enums
- A
LitKind
-like enum to fold constantExpr
s into. - The source of a constant value.
Functions
- Attempts to evaluate the expression as a constant.
- 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
.