summaryrefslogtreecommitdiff
path: root/examples/10-shared/output/rust/src/point.rs
blob: dea767893f0338064ec88a722175159b25cdbc50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Generated by hobgoblin.

/// A straight line from one point to another.
#[derive(Debug, Hash, PartialEq)]
pub struct Line {
    pub start: ::std::sync::Arc::<crate::point::Point>,
    pub end: ::std::sync::Arc::<crate::point::Point>,
}

/// A 2D point.
#[derive(Debug, Hash, PartialEq)]
pub struct Point {
    pub x: ::core::primitive::i32,
    pub y: ::core::primitive::i32,
}