pub fn is_default_equivalent(cx: &LateContext<'_>, e: &Expr<'_>) -> bool
Expand description
Returns true if the expr is equal to Default::default()
of it’s type when evaluated.
It doesn’t cover all cases, for example indirect function calls (some of std functions are supported) but it is the best we have.