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.