Angles should not implement Hash

Angles are implemented over floating point values - they will never be hashable.
This commit is contained in:
Brendan Zabarauskas 2015-12-13 15:52:33 +11:00
parent 981836626b
commit 8f60f0a666

View file

@ -29,10 +29,10 @@ use approx::ApproxEq;
use num::BaseFloat;
/// An angle, in radians
#[derive(Copy, Clone, PartialEq, PartialOrd, Hash, RustcEncodable, RustcDecodable)]
#[derive(Copy, Clone, PartialEq, PartialOrd, RustcEncodable, RustcDecodable)]
pub struct Rad<S> { pub s: S }
/// An angle, in degrees
#[derive(Copy, Clone, PartialEq, PartialOrd, Hash, RustcEncodable, RustcDecodable)]
#[derive(Copy, Clone, PartialEq, PartialOrd, RustcEncodable, RustcDecodable)]
pub struct Deg<S> { pub s: S }
/// Create a new angle, in radians