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::ArcLazy;pub use lazy::ArcLazyConfig;pub use lazy::Lazy;pub use lazy::LazyConfig;pub use lazy::LazyError;pub use lazy::RcLazy;pub use lazy::RcLazyConfig;pub use pair::Pair;pub use send_endofunction::SendEndofunction;
Modules§
- arc_ptr
ArcBrandpointer implementation.- endofunction
- Endofunction wrapper.
- endomorphism
- Endomorphism wrapper.
- fn_
brand - Function wrappers.
- identity
- Implementations for
Identity, a type that wraps a value. - lazy
- Lazy value wrapper.
- once_
cell OnceCellwrapper.- once_
lock OnceLockwrapper.- option
- Implementations for
Option. - pair
- Implementations for
Pair, a type that wraps two values. - rc_ptr
RcBrandpointer implementation.- result
- Implementations for
Result. - send_
endofunction - SendEndofunction wrapper.
- string
- Implementations for
String. - vec
- Implementations for
Vec.