clippy_utils

Function is_integer_const

Source
pub fn is_integer_const(cx: &LateContext<'_>, e: &Expr<'_>, value: u128) -> bool
Expand description

Checks whether the given expression is a constant integer of the given value. unlike is_integer_literal, this version does const folding