clippy_utils

Function is_integer_literal

source
pub fn is_integer_literal(expr: &Expr<'_>, value: u128) -> bool
Expand description

Checks whether the given expression is a constant literal of the given value.