1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// Generated by hobgoblin. /// A 2D shape. pub enum Shape { Rectangle(crate::shapes::Rectangle), Triangle(crate::shapes::Triangle), } pub struct Rectangle { pub width: i32, pub height: i32, } pub struct Triangle { pub width: i32, pub height: i32, }