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
use crate::{NotVoid, StaticMaybe};

pub trait MaybeNor<T, Rhs>: StaticMaybe<T>
where
    Rhs: StaticMaybe<T>
{
    type Output: StaticMaybe<T>;
}

impl<T> MaybeNor<T, T> for T
where
    T: NotVoid
{
    type Output = ();
}
impl<T> MaybeNor<T, ()> for T
where
    T: NotVoid
{
    type Output = ();
}
impl<T> MaybeNor<T, T> for ()
where
    T: NotVoid
{
    type Output = ();
}
impl<T> MaybeNor<T, ()> for ()
where
    T: NotVoid
{
    type Output = T;
}