graphrecords_query/traits/
aggregation.rs1pub trait All {
2 type ReturnOperand;
3
4 fn all(&self) -> Self::ReturnOperand;
5}
6
7pub trait Any {
8 type ReturnOperand;
9
10 fn any(&self) -> Self::ReturnOperand;
11}
12
13pub trait Count {
14 type ReturnOperand;
15
16 fn count(&self) -> Self::ReturnOperand;
17}
18
19pub trait Maximum {
20 type ReturnOperand;
21
22 fn max(&self) -> Self::ReturnOperand;
23}
24
25pub trait Mean {
26 type ReturnOperand;
27
28 fn mean(&self) -> Self::ReturnOperand;
29}
30
31pub trait Median {
32 type ReturnOperand;
33
34 fn median(&self) -> Self::ReturnOperand;
35}
36
37pub trait Minimum {
38 type ReturnOperand;
39
40 fn min(&self) -> Self::ReturnOperand;
41}
42
43pub trait Mode {
44 type ReturnOperand;
45
46 fn mode(&self) -> Self::ReturnOperand;
47}
48
49pub trait UniqueCount {
50 type ReturnOperand;
51
52 fn n_unique(&self) -> Self::ReturnOperand;
53}
54
55pub trait Product {
56 type ReturnOperand;
57
58 fn product(&self) -> Self::ReturnOperand;
59}
60
61pub trait Random {
62 type ReturnOperand;
63
64 fn random(&self) -> Self::ReturnOperand;
65}
66
67pub trait StandardDeviation {
68 type ReturnOperand;
69
70 fn std(&self) -> Self::ReturnOperand;
71}
72
73pub trait Sum {
74 type ReturnOperand;
75
76 fn sum(&self) -> Self::ReturnOperand;
77}
78
79pub trait Variance {
80 type ReturnOperand;
81
82 fn var(&self) -> Self::ReturnOperand;
83}