summaryrefslogtreecommitdiff
path: root/examples/05-box/output/rust/src/point.rs
blob: 9629fc1cdeb41f80bb8d6a7ac5993fed2658a8f0 (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(Clone, Debug, Hash, PartialEq)]
pub struct Line {
    pub start: ::std::boxed::Box::<crate::point::Point>,
    pub end: ::std::boxed::Box::<crate::point::Point>,
}

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