It should be possible to make templates generic on parameter types, just like any other rust functions.