Function clippy_utils::binop_traits
source · pub fn binop_traits(kind: BinOpKind) -> Option<(LangItem, LangItem)>
Expand description
Converts BinOpKind::Add
to (LangItem::Add, LangItem::AddAssign)
, for example
pub fn binop_traits(kind: BinOpKind) -> Option<(LangItem, LangItem)>
Converts BinOpKind::Add
to (LangItem::Add, LangItem::AddAssign)
, for example