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
9pub mod pair_with_first;
10pub mod pair_with_second;
11
12pub use pair_with_first::*;
13pub use pair_with_second::*;
14
15/// [Brand][crate::brands] for [`Pair`].
16pub struct PairBrand;
17
18impl<A, B> Kind2<A, B> for PairBrand {
19	type Output = Pair<A, B>;
20}