Take representation into account when getting discriminant
Fixed
- Take representation into account when determining the discriminant type.
Changed
- Use stable methods to retrieve the discriminant in
PartialOrd
andOrd
implementations. Safe methods used with thesafe
crate feature don't use
recursive matches anymore, significantly improving the performance.