graphrecords_query/traits/
arithmetic.rs1pub trait Add<A> {
2 type ReturnOperand;
3
4 fn add(&self, argument: A) -> Self::ReturnOperand;
5}
6
7pub trait Subtract<A> {
8 type ReturnOperand;
9
10 fn subtract(&self, argument: A) -> Self::ReturnOperand;
11}
12
13pub trait Multiply<A> {
14 type ReturnOperand;
15
16 fn multiply(&self, argument: A) -> Self::ReturnOperand;
17}
18
19pub trait Divide<A> {
20 type ReturnOperand;
21
22 fn divide(&self, argument: A) -> Self::ReturnOperand;
23}
24
25pub trait Power<A> {
26 type ReturnOperand;
27
28 fn power(&self, argument: A) -> Self::ReturnOperand;
29}
30
31pub trait Modulo<A> {
32 type ReturnOperand;
33
34 fn modulo(&self, argument: A) -> Self::ReturnOperand;
35}