fp_library/
types.rs

1//! Concrete data types, their corresponding implementations and type aliases.
2//!
3//! This module provides implementations of various functional programming
4//! data structures and wrappers, including `Identity`, `Lazy`, and extensions
5//! for standard library types like `Option` and `Result`.
6//!
7//! ### Examples
8//!
9//! ```
10//! use fp_library::types::Identity;
11//!
12//! let x = Identity(5);
13//! assert_eq!(x.0, 5);
14//! ```
15
16pub mod arc_fn;
17pub mod endofunction;
18pub mod endomorphism;
19pub mod identity;
20pub mod lazy;
21pub mod once_cell;
22pub mod once_lock;
23pub mod option;
24pub mod pair;
25pub mod rc_fn;
26pub mod result;
27pub mod send_endofunction;
28pub mod string;
29pub mod vec;
30
31pub use endofunction::Endofunction;
32pub use endomorphism::Endomorphism;
33pub use identity::Identity;
34pub use lazy::Lazy;
35pub use pair::Pair;
36pub use send_endofunction::SendEndofunction;