clippy_utils::ty

Function ty_sig

source
pub fn ty_sig<'tcx>(
    cx: &LateContext<'tcx>,
    ty: Ty<'tcx>,
) -> Option<ExprFnSig<'tcx>>
Expand description

If the type is function like, get the signature for it.