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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#![deny(missing_docs)]
use std::marker::PhantomData;
pub use construct::Construct;
pub use count::Count;
pub use to_index::ToIndex;
pub use to_pos::ToPos;
pub use power_set::PowerSet;
pub use dimension_n::DimensionN;
pub use dimension::Dimension;
pub use pair::Pair;
pub use eq_pair::EqPair;
pub use neq_pair::NeqPair;
pub use permutation::Permutation;
pub use context::Context;
pub use directed_context::DirectedContext;
mod construct;
mod count;
mod to_index;
mod to_pos;
mod power_set;
mod dimension_n;
mod dimension;
mod pair;
mod eq_pair;
mod neq_pair;
mod permutation;
mod context;
mod directed_context;
#[derive(Copy, Clone)]
pub struct Data;
pub struct Subspace<T>(PhantomData<T>);
pub struct Of<T>(PhantomData<T>);
#[cfg(test)]
pub fn does_count<T, U>()
where
T: Count<U>
{}
#[cfg(test)]
pub fn does_to_index<T, U, V>()
where
T: ToIndex<U, V>
{}
#[cfg(test)]
pub fn does_to_pos<T, U, V>()
where
T: ToPos<U, V>
{}
#[cfg(test)]
pub fn is_complete<T, U, V, W>()
where
T: Count<U> + ToIndex<U, V> + ToPos<U, W>
{
does_count::<T, U>();
does_to_index::<T, U, V>();
does_to_pos::<T, U, W>();
}