Skip to main content

object_rainbow/
tuple_extra.rs

1use crate::{map_extra::MapExtra, *};
2
3#[derive(
4    Debug, ToOutput, InlineOutput, Tagged, ListHashes, Topological, Clone, Copy, Parse, ParseInline,
5)]
6pub struct Extra0;
7
8impl<A: 'static + Clone, B: 'static + Clone> MapExtra<(A, B)> for Extra0 {
9    type Mapped = A;
10
11    fn map_extra(&self, (extra, _): (A, B)) -> Self::Mapped {
12        extra
13    }
14}