Function clippy_utils::consts::constant_is_empty
source · pub fn constant_is_empty(lcx: &LateContext<'_>, e: &Expr<'_>) -> Option<bool>
Expand description
Attempts to check whether the expression is a constant representing an empty slice, str, array, etc…