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
pub
pub
pub ;
// This is unstable https://users.rust-lang.org/t/generic-const-exprs-in-trait-bounds/132951/4
// #[cfg(nightly)]
// mod dimensions {
// use super::*;
//
// struct Condition<const U: bool>;
// trait IsTrue {}
// impl IsTrue for Condition<true> {}
//
// impl<const N: usize, const M: usize> Widen for Dimension<N, M>
// where
// Condition<{ N >= M }>: IsTrue
// {}
//
// impl<const N: usize, const M: usize> Narrow for Dimension<N, M>
// where
// Condition<{ N < M }>: IsTrue
// {}
// }
// #[cfg(not(nightly))]