pub trait ComputeFunctionTrait:
Send
+ Sync
+ Debug
+ Display
+ FunctionTrait {
// Required methods
fn call(&self, input: &str) -> String;
fn box_clone(&self) -> Box<dyn ComputeFunctionTrait>;
}Expand description
User supplied Compute function
Required Methods§
Sourcefn box_clone(&self) -> Box<dyn ComputeFunctionTrait>
fn box_clone(&self) -> Box<dyn ComputeFunctionTrait>
Creates a boxed clone of the function object (clone doesn’t work with boxed traites)