Using structs that inherit from a specific trait as a type? - Modular