diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-25 19:09:59 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-25 19:09:59 +0100 |
| commit | 26ab534795dcced8ae6e7b4898b50748b73c930e (patch) | |
| tree | abff77bb1a44ed24480350728f8a1046cf3662b2 /examples/01-struct/output | |
| parent | 85d6843940295d4121fbf4313d5381ca9381f365 (diff) | |
Derive Hash for generated Rust types
Diffstat (limited to 'examples/01-struct/output')
| -rw-r--r-- | examples/01-struct/output/rust/src/point.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/01-struct/output/rust/src/point.rs b/examples/01-struct/output/rust/src/point.rs index 30b661f..6a90a6e 100644 --- a/examples/01-struct/output/rust/src/point.rs +++ b/examples/01-struct/output/rust/src/point.rs @@ -1,14 +1,14 @@ // Generated by hobgoblin. /// A straight line from one point to another. -#[derive(Debug, PartialEq)] +#[derive(Debug, Hash, PartialEq)] pub struct Line { pub start: crate::point::Point, pub end: crate::point::Point, } /// A 2D point. -#[derive(Debug, PartialEq)] +#[derive(Debug, Hash, PartialEq)] pub struct Point { pub x: ::core::primitive::i32, pub y: ::core::primitive::i32, |
