summaryrefslogtreecommitdiff
path: root/examples/02-sum/output/rust/src/shapes.rs
blob: 586c7c00549ddce723b3cdff99c8a69e182d5461 (plain)
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,
}