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