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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#[doc(hidden)]
#[macro_export]
macro_rules! __unparenthesize_ty {
(($type:ty)) => {
$type
};
($type:ty) => {
$type
};
}
#[doc(hidden)]
#[macro_export]
macro_rules! __unparen_pat {
(($(|)? $($pat:pat_param)|+)) => { ($($pat)|+) };
(($($stuff:tt)*)) => { $($stuff)* };
($($stuff:tt)*) => { $($stuff)* };
}
#[doc(hidden)]
#[macro_export]
macro_rules! __ty_or_und {
() => {
_
};
($ty:ty) => {
$ty
};
}
#[doc(hidden)]
#[macro_export]
macro_rules! __annotate_type {
(=> $expr:expr) => {
$expr
};
($type:ty => $expr:expr) => {
$crate::__utils::TypeAnnot::<$type> { val: $expr }.val
};
}
#[doc(hidden)]
#[macro_export]
macro_rules! __choose {
(true $then:tt $($else:tt)*) => {
$then
};
(false $then:tt $else:tt) => {
$else
};
}
#[doc(hidden)]
#[macro_export]
macro_rules! __choose_alt {
((true $($cond:tt)*) {$($then:tt)*} $(else $else:tt)?) => {
$($then)*
};
((false $($cond:tt)*) $then:tt $(else {$($else:tt)*})?) => {
$($($else)*)?
};
}