Skip to main content

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 InlineOutput for Infallible {}
12
13impl Size for Infallible {
14    type Size = U0;
15    const SIZE: usize = 0;
16}
17
18impl MaybeHasNiche for Infallible {
19    type MnArray = SomeNiche<ZeroNiche<U0>>;
20}