clippy_utils

Function binop_traits

Source
pub fn binop_traits(kind: BinOpKind) -> Option<(LangItem, LangItem)>
Expand description

Converts BinOpKind::Add to (LangItem::Add, LangItem::AddAssign), for example