pub trait BaseFunction<A, B>: Send + Sync {
// Required method
fn apply(&self, a: A) -> Result<B, Error>;
}Expand description
A function which takes objects of type A and returns objects of type B.
§Translation notes
Any closure Fn(A) -> Result<B, Error> + Send + Sync implements it.