fp_library/types/
tuple.rs

1//! Implementations for `Tuple`, a type that wraps two values.
2
3use crate::hkt::Kind2;
4
5/// Wraps two values.
6#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
7pub struct Tuple<A, B>(pub A, pub B);
8
9/// Brand for [`Tuple`](../tuple/struct.Tuple.html).
10pub struct TupleBrand;
11
12impl<A, B> Kind2<A, B> for TupleBrand {
13	type Output = Tuple<A, B>;
14}