Expand description
Code related to processing overloaded binary and unary operators.
Enumsยง
- BinOp
Category ๐ - 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
trueif 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