Expand description
Wrappers over closures 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
- A trait for wrappers over closures, allowing for generic handling of functions in higher-kinded contexts.
Functions§
- new
- Creates a new function wrapper.