Module arithmetic_typing::arith [−][src]
Expand description
Types allowing to customize various aspects of the type system, such as type constraints and behavior of unary / binary ops.
Structs
BinaryOpContext | Code spans related to a binary operation. |
BoolArithmetic | Simplest |
ConstraintSet | Set of |
Linearity |
|
NumArithmetic | Arithmetic on |
OpConstraintSettings | Settings for constraints placed on arguments of binary arithmetic operations. |
Ops |
|
StructConstraint | Helper to define structural |
Substitutions | Set of equations and constraints on type variables. |
UnaryOpContext | Code spans related to a unary operation. |
Enums
Num | Primitive types for the numeric arithmetic: |
Traits
Constraint | Constraint that can be placed on |
LinearType | Primitive type which supports a notion of linearity. Linear types are types that can be used in arithmetic ops. |
MapPrimitiveType | Maps a literal value from a certain |
ObjectSafeConstraint | Marker trait for object-safe constraints, i.e., constraints that can be included
into a |
TypeArithmetic | Arithmetic allowing to customize primitive types and how unary and binary operations are handled during type inference. |
WithBoolean |
|