Expand description
Function wrappers.
This module defines the Function trait, which provides an abstraction for wrappers over closures.
This allows for generic handling of functions in higher-kinded contexts.
§Examples
use fp_library::{brands::*, functions::*};
let f = fn_new::<RcFnBrand, _, _>(|x: i32| x * 2);
assert_eq!(f(5), 10);Traits§
- Function
- Abstraction for wrappers over closures.
Functions§
- new
- Creates a new function wrapper.