pub fn is_slice_like<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool
Expand description
Check if ty
is slice-like, i.e., &[T]
, [T; N]
, or Vec<T>
.
pub fn is_slice_like<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool
Check if ty
is slice-like, i.e., &[T]
, [T; N]
, or Vec<T>
.