Module op

Module op 

Source
Expand description

Code related to processing overloaded binary and unary operators.

Enumsยง

BinOpCategory ๐Ÿ”’
Op ๐Ÿ”’
An assignment op (e.g. a += b), or a binary op (e.g. a + b).

Functionsยง

deref_ty_if_possible ๐Ÿ”’
Dereferences a single level of immutable referencing.
is_builtin_binop ๐Ÿ”’
Returns true if this is a built-in arithmetic operation (e.g., u32 + u32, i16x4 == i16x4) and false if these types would have to be overloaded to be legal. There are two reasons that we distinguish builtin operations from overloaded ones (vs trying to drive everything uniformly through the trait system and intrinsics or something like that):
lang_item_for_binop ๐Ÿ”’
lang_item_for_unop ๐Ÿ”’