Function clippy_utils::is_slice_of_primitives

source ยท
pub fn is_slice_of_primitives(
    cx: &LateContext<'_>,
    expr: &Expr<'_>,
) -> Option<String>
Expand description

Returns Option<String> where String is a textual representation of the type encapsulated in the slice iff the given expression is a slice of primitives.

(As defined in the is_recursively_primitive_type function.) Returns None otherwise.