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