1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#![allow(unused)]
pub mod integer {
macro_rules! S {
(0) => {
S::ZERO
};
(1) => {
S::ONE
};
(2) => {
S::TWO
};
}
pub(crate) use S;
macro_rules! Sc {
(0) => {
$crate::op_wrapper::Sc(S::ZERO)
};
(1) => {
$crate::op_wrapper::Sc(S::ONE)
};
(2) => {
$crate::op_wrapper::Sc(S::TWO)
};
}
pub(crate) use Sc;
}
pub mod float {
macro_rules! S {
(0.5) => {
S::HALF
};
}
pub(crate) use S;
macro_rules! Sc {
(0.5) => {
$crate::op_wrapper::Sc(S::HALF)
};
}
pub(crate) use Sc;
}