summaryrefslogtreecommitdiff
path: root/examples/07-custom-code/output/rust/src/shapes.rs
blob: f806bbbea7e6fddf6d29073860224413eed9a7e3 (plain)
1
2
3
4
5
6
7
include!("gen/shapes.rs");

impl Square {
    pub fn area(&self) -> i32 {
        self.width * self.width
    }
}