Function clippy_utils::fn_def_id
source · pub fn fn_def_id(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option<DefId>
Expand description
Returns the DefId
of the callee if the given expression is a function or method call.
pub fn fn_def_id(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option<DefId>
Returns the DefId
of the callee if the given expression is a function or method call.