Expand description
Concrete data types, their corresponding implementations and type aliases.
This module provides implementations of various functional programming
data structures and wrappers, including Identity, Lazy, and extensions
for standard library types like Option and Result.
§Examples
use fp_library::types::Identity;
let x = Identity(5);
assert_eq!(x.0, 5);Re-exports§
pub use endofunction::Endofunction;pub use endomorphism::Endomorphism;pub use identity::Identity;pub use lazy::Lazy;pub use pair::Pair;pub use send_endofunction::SendEndofunction;
Modules§
- arc_fn
- Atomically reference-counted function wrapper.
- endofunction
- Endofunction wrapper.
- endomorphism
- Endomorphism wrapper.
- identity
- Implementations for
Identity, a type that wraps a value. - lazy
- Lazy value wrapper.
- once_
cell - OnceCell wrapper.
- once_
lock - OnceLock wrapper.
- option
- Implementations for
Option. - pair
- Implementations for
Pair, a type that wraps two values. - rc_fn
- Reference-counted function wrapper.
- result
- Implementations for
Result. - send_
endofunction - SendEndofunction wrapper.
- string
- Implementations for
String. - vec
- Implementations for
Vec.