clippy_utils::ty

Function has_iter_method

Source
pub fn has_iter_method(
    cx: &LateContext<'_>,
    probably_ref_ty: Ty<'_>,
) -> Option<Symbol>
Expand description

Returns true if ty has iter or iter_mut methods