summaryrefslogtreecommitdiff
path: root/examples/02-sum/output/rust/src/shapes.rs
blob: 958db0aeb49aa715d17790afe5b0557b587bb198 (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: ::core::primitive::i32,
    pub height: ::core::primitive::i32,
}

pub struct Triangle {
    pub width: ::core::primitive::i32,
    pub height: ::core::primitive::i32,
}