clippy_utils::ty

Function expr_sig

source
pub fn expr_sig<'tcx>(
    cx: &LateContext<'tcx>,
    expr: &Expr<'_>,
) -> Option<ExprFnSig<'tcx>>
Expand description

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