clippy_utils::ty

Function is_copy

Source
pub fn is_copy<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool
Expand description

Checks if the given type implements copy.