Angles should not implement Hash
Angles are implemented over floating point values - they will never be hashable.
This commit is contained in:
parent
981836626b
commit
8f60f0a666
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue