peepmatic_runtime/
unquote.rs

1//! Unquote operator definition.
2
3peepmatic_traits::define_operator! {
4    /// Compile-time unquote operators.
5    ///
6    /// These are used in the right-hand side to perform compile-time evaluation of
7    /// constants matched on the left-hand side.
8    #[allow(missing_docs)]
9    UnquoteOperator {
10        band => Band {
11            parameters(iNN, iNN);
12            result(iNN);
13        }
14        bor => Bor {
15            parameters(iNN, iNN);
16            result(iNN);
17        }
18        bxor => Bxor {
19            parameters(iNN, iNN);
20            result(iNN);
21        }
22        iadd => Iadd {
23            parameters(iNN, iNN);
24            result(iNN);
25        }
26        imul => Imul {
27            parameters(iNN, iNN);
28            result(iNN);
29        }
30        isub => Isub {
31            parameters(iNN, iNN);
32            result(iNN);
33        }
34        log2 => Log2 {
35            parameters(iNN);
36            result(iNN);
37        }
38        neg => Neg {
39            parameters(iNN);
40            result(iNN);
41        }
42    }
43    parse_cfg(feature = "construct");
44}