rust-embedded-community / aligned

A newtype with alignment of at least `A` bytes
Apache License 2.0
30 stars 9 forks source link

Aligned implements Eq, Ord, Hash if available #11

Closed cbeck88 closed 4 years ago

cbeck88 commented 4 years ago

The motivations are to allow Aligned to be used easily in types that are stored in sets and maps. Implementing PartialEq also allows to make tests that assert_eq! that Aligned values are equal.


Thanks for merging https://github.com/japaric/aligned/pull/9 ! This is the last PR like this that I foresee.

japaric commented 4 years ago

Thanks!