Skip to main content

object_rainbow/
without_header.rs

1use crate::{map_extra::MapExtra, *};
2
3#[derive(
4    Debug,
5    ToOutput,
6    InlineOutput,
7    Tagged,
8    ListHashes,
9    Topological,
10    Clone,
11    Copy,
12    Parse,
13    ParseInline,
14    Default,
15    PartialEq,
16    Eq,
17)]
18pub struct WithoutHeader;
19
20impl<H: 'static + Clone, E: 'static + Clone> MapExtra<(H, E)> for WithoutHeader {
21    type Mapped = E;
22
23    fn map_extra(&self, (_, extra): (H, E)) -> Self::Mapped {
24        extra
25    }
26}