clippy_utils::hir_utils

Function is_bool

Source
pub fn is_bool(ty: &Ty<'_>) -> bool