fp_library/types/pair.rs
1//! Implementations for `Pair`, 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 Pair<A, B>(pub A, pub B);
8
9/// Brand for [`Pair`](../pair/struct.Pair.html).
10pub struct PairBrand;
11
12impl<A, B> Kind2<A, B> for PairBrand {
13 type Output = Pair<A, B>;
14}