graphrecords_query/traits/
numeric.rs1pub trait Absolute {
2 type ReturnOperand;
3
4 fn abs(&self) -> Self::ReturnOperand;
5}
6
7pub trait Ceil {
8 type ReturnOperand;
9
10 fn ceil(&self) -> Self::ReturnOperand;
11}
12
13pub trait Clip<L, U> {
14 type ReturnOperand;
15
16 fn clip(&self, lower: L, upper: U) -> Self::ReturnOperand;
17}
18
19pub trait CubeRoot {
20 type ReturnOperand;
21
22 fn cbrt(&self) -> Self::ReturnOperand;
23}
24
25pub trait Exponential {
26 type ReturnOperand;
27
28 fn exp(&self) -> Self::ReturnOperand;
29}
30
31pub trait Floor {
32 type ReturnOperand;
33
34 fn floor(&self) -> Self::ReturnOperand;
35}
36
37pub trait Logarithm {
38 type ReturnOperand;
39
40 fn log(&self) -> Self::ReturnOperand;
41}
42
43pub trait Negate {
44 type ReturnOperand;
45
46 fn neg(&self) -> Self::ReturnOperand;
47}
48
49pub trait Round {
50 type ReturnOperand;
51
52 fn round(&self) -> Self::ReturnOperand;
53}
54
55pub trait Sign {
56 type ReturnOperand;
57
58 fn sign(&self) -> Self::ReturnOperand;
59}
60
61pub trait SquareRoot {
62 type ReturnOperand;
63
64 fn sqrt(&self) -> Self::ReturnOperand;
65}