Skip to content

Releases: reem/rust-ordered-float

v2.4.0

21 May 20:30
Compare
Choose a tag to compare
  • Implement AddAssign, MulAssign, etc. for OrderedFloat<T>.
  • Implement From<OrderedFloat<Self>> for f32 and f64.
  • Add inline attributes to more methods.
  • Minor code cleanup.

v2.3.0

21 May 19:21
Compare
Choose a tag to compare
  • Implement traits from std::ops for reference types (#82).
  • Add more high-level documentation and examples.

v2.2.0

03 May 16:22
Compare
Choose a tag to compare
  • Add optional schemars feature (#78).
  • Re-export the Float trait (#79).

v2.1.1

05 Feb 16:19
Compare
Choose a tag to compare
  • Fix a compiler error when building without the std feature (#74).

v2.1.0

04 Feb 18:16
Compare
Choose a tag to compare
  • Implement more numeric traits for OrderedFloat<T> (#73).
  • Implement From<&T> for &OrderedFloat<T> (#72).

v2.0.1

06 Dec 19:41
Compare
Choose a tag to compare
  • Make assignment operators panic safe (#71). This fixes a bug that could cause undefined behavior in safe code.

v1.1.1

06 Dec 19:46
Compare
Choose a tag to compare
  • Make assignment operators panic safe (#71). This fixes a bug that could cause undefined behavior in safe code.

v2.0.0

10 Jul 22:43
Compare
Choose a tag to compare
  • The minimum supported Rust toolchain version has increased from 1.28 to 1.34.
  • NotNan<T> now implements TryFrom<T> instead of From<T>.
  • NotNan::unchecked_new is now a const fn.
  • NotNan<T> and OrderedFloat<T> now implement PartialEq<T>.
  • The deprecated NotNaN type alias has been removed.

v1.1.0

30 Jun 15:25
Compare
Choose a tag to compare
  • Implement Sum and Product traits for NotNan (#65).
  • Implement Neg and Zero traits for OrderedFloat (#60, #66).
  • Implement Add, Sub, Mul, and Div traits for OrderedFloat.

v1.0.2

13 Mar 19:15
Compare
Choose a tag to compare
  • Implement FromStr (#53)
  • Internal refactoring (#55)
  • Fix for no_std builds (#59)