Skip to main content

GroupFunctionTrait

Trait GroupFunctionTrait 

Source
pub trait GroupFunctionTrait:
    Send
    + Sync
    + Debug
    + Display
    + FunctionTrait {
    // Required methods
    fn call(&self, input: &str) -> String;
    fn box_clone(&self) -> Box<dyn GroupFunctionTrait>;
}
Expand description

User supplied Mapping function

Required Methods§

Source

fn call(&self, input: &str) -> String

calls the function

Source

fn box_clone(&self) -> Box<dyn GroupFunctionTrait>

Creates a boxed clone of the function object (clone doesn’t work with boxed traites)

Implementors§