diff options
| author | Arne Dußin | 2020-11-18 22:01:04 +0100 |
|---|---|---|
| committer | Arne Dußin | 2020-11-18 22:01:04 +0100 |
| commit | f62dabcb390d4808739745c050dfba8e2826b214 (patch) | |
| tree | 5cfce91911416b5e05a22cf33fd5775683b4c19d /src/math/vec2.rs | |
| parent | 761c8624521db5bf338c9e7e3520085820113f28 (diff) | |
| parent | 8d99501918393ea0c046d721e6fa6015fe43b70f (diff) | |
| download | graf_karto-f62dabcb390d4808739745c050dfba8e2826b214.tar.gz graf_karto-f62dabcb390d4808739745c050dfba8e2826b214.zip | |
Merge branch 'polygon'
Diffstat (limited to 'src/math/vec2.rs')
| -rw-r--r-- | src/math/vec2.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/vec2.rs b/src/math/vec2.rs index 2b33f7b..cd38889 100644 --- a/src/math/vec2.rs +++ b/src/math/vec2.rs @@ -8,7 +8,7 @@ use std::convert::{From, Into}; use std::ops::{Add, AddAssign, Div, Mul, MulAssign, Neg, Sub, SubAssign}; use std::{fmt, mem}; -#[derive(Clone, Copy, Debug, Default, PartialEq, Serialize, Deserialize, Eq)] +#[derive(Clone, Copy, Debug, Default, PartialEq, Serialize, Deserialize, Eq, Hash)] pub struct Vec2<T: Scalar + Copy> { pub x: T, pub y: T, |
