object_rainbow/impls/infallible.rs
1use typenum::U0;
2
3use crate::*;
4
5impl ToOutput for Infallible {
6 fn to_output(&self, _: &mut dyn Output) {
7 match *self {}
8 }
9}
10
11impl Size for Infallible {
12 type Size = U0;
13 const SIZE: usize = 0;
14}
15
16impl MaybeHasNiche for Infallible {
17 type MnArray = SomeNiche<ZeroNiche<U0>>;
18}