reikna::func!
[−]
[src]
macro_rules! func { ($e:expr) => { ... }; }
Macro for creating a Function
.
More idiomatic than calling Rc::new()
.
Examples
use reikna::func::*; let f: Function = func!(|x| x * x); assert_eq!(f(5.0), 25.0);