Is there a way to declare a generic trait that takes a function as the generic argument and uses it? To clarify (Non-functioning code):
pub trait Test