How to declare a function type in a trait? - Modular