summaryrefslogtreecommitdiff
path: root/examples/01-struct/output/rust/src/point.rs
blob: 467b8a89e19650b901e761c90a5ef8d0f64f7b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
/// A straight line from one point to another.
pub struct Line {
    pub start: crate::point::Point,
    pub end: crate::point::Point,
}

/// A 2D point.
pub struct Point {
    pub x: i32,
    pub y: i32,
}