I\'m using a macro to generate a module, and that module defines a function that returns a type that the user passes in:
macro_rules! generate_mod { ($nam