diesel/query_source/
peano_numbers.rs1#[allow(missing_debug_implementations, missing_copy_implementations)]
8pub struct Never;
9
10#[allow(missing_debug_implementations, missing_copy_implementations)]
12pub struct Once;
13
14#[allow(missing_debug_implementations, missing_copy_implementations)]
16pub struct MoreThanOnce;
17
18pub trait Plus<T> {
23 type Output;
25}
26
27impl<T> Plus<T> for Never {
28 type Output = T;
29}
30
31impl<T> Plus<T> for MoreThanOnce {
32 type Output = Self;
33}
34
35impl Plus<Never> for Once {
36 type Output = Self;
37}
38
39impl Plus<Once> for Once {
40 type Output = MoreThanOnce;
41}
42
43impl Plus<MoreThanOnce> for Once {
44 type Output = MoreThanOnce;
45}