module arch.system.state.resource_machine.primitive_interfaces.fixed_size_type.arithmetic;
Arithmetic¶
Arithmetic fixed size type is a type of fixed size that additionally supports addition and subtraction.
classDiagram
class FixedSize~T, Arg~ {
<<Interface>>
+bit_size: Int
+new(Arg) T
+equal(T, T) Bool
}
FixedSize <|-- Arithmetic
class Arithmetic~T, Arg~ {
<<Interface>>
+add(T, T) T
+sub(T, T) T
}
Arithmetic <|-- Quantity
Arithmetic <|-- Balance
Used in¶
- Resource component:
quantity
DeltaHash