diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-08-29 23:27:59 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-08-29 23:27:59 +0100 |
| commit | e5b0b62785e75d19b4d852712cb6a72ea77429d2 (patch) | |
| tree | d984963c54b6703a2eaaefcc7a7ce0633e7de1e4 /examples/03-struct-generic/output/rust/src/point.rs | |
| parent | 39d0b5105f474dd044022d2bb243eee203a93bfd (diff) | |
Don't derive Hash for generated Rust types
Diffstat (limited to 'examples/03-struct-generic/output/rust/src/point.rs')
| -rw-r--r-- | examples/03-struct-generic/output/rust/src/point.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/03-struct-generic/output/rust/src/point.rs b/examples/03-struct-generic/output/rust/src/point.rs index ae6a1ee..a6c6615 100644 --- a/examples/03-struct-generic/output/rust/src/point.rs +++ b/examples/03-struct-generic/output/rust/src/point.rs @@ -1,40 +1,40 @@ // Generated by hobgoblin. /// A set of drawings. -#[derive(Clone, Debug, Hash, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub struct OwnedLineDrawing<TPoint> { pub drawing: crate::point::LineDrawing::<TPoint>, pub owner: ::std::string::String, } /// A 2D drawing made up of straight lines. -#[derive(Clone, Debug, Hash, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub struct LineDrawing2D { pub lines: ::std::vec::Vec::<crate::point::Line::<crate::point::Point2D>>, } /// A drawing made up of straight lines. -#[derive(Clone, Debug, Hash, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub struct LineDrawing<TPoint> { pub lines: ::std::vec::Vec::<crate::point::Line::<TPoint>>, } /// A cubic Bezier curve. -#[derive(Clone, Debug, Hash, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub struct BezierCurve<TPoint> { pub start: crate::point::Line::<TPoint>, pub end: crate::point::Line::<TPoint>, } /// A straight line from one point to another. -#[derive(Clone, Debug, Hash, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub struct Line<TPoint> { pub start: TPoint, pub end: TPoint, } /// A 2D point. -#[derive(Clone, Debug, Hash, PartialEq)] +#[derive(Clone, Debug, PartialEq)] pub struct Point2D { pub x: ::core::primitive::i32, pub y: ::core::primitive::i32, |
