I\'m using an enum for polymorphism, similar to the following:
enum MyType { Variant1 { a: i32, b: i32 }, Variant2 { a: bool, b: bool }, }
No, that's exactly how that works.