Function clippy_utils::is_integer_literal
source · pub fn is_integer_literal(expr: &Expr<'_>, value: u128) -> boolExpand description
Checks whether the given expression is a constant literal of the given value.
pub fn is_integer_literal(expr: &Expr<'_>, value: u128) -> boolChecks whether the given expression is a constant literal of the given value.