Skip to main content

object_rainbow/
niche_cut.rs

1use crate::*;
2
3#[derive(
4    Debug,
5    Clone,
6    Copy,
7    PartialEq,
8    Eq,
9    PartialOrd,
10    Ord,
11    ToOutput,
12    InlineOutput,
13    ListHashes,
14    Topological,
15    Parse,
16    ParseInline,
17    Size,
18    Default,
19)]
20pub struct NicheCut;
21
22impl ByteOrd for NicheCut {
23    fn bytes_cmp(&self, Self: &Self) -> Ordering {
24        Ordering::Equal
25    }
26}
27
28impl MaybeHasNiche for NicheCut {
29    type MnArray = NoNiche<NicheForUnsized>;
30}
31
32impl Monostate for NicheCut {}