Function clippy_utils::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.
pub fn is_integer_literal(expr: &Expr<'_>, value: u128) -> bool
Checks whether the given expression is a constant literal of the given value.