Function clippy::utils::is_integer_literal [−] [src]

pub fn is_integer_literal(expr: &Expr, value: u64) -> bool

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