- The
convert_into()andtry_convert_into()methods are added to convert the underlying type of an infinitable value. - Example code is updated to reflect the Rust 2021 edition.
- Missing version information for functionality added in 1.5.0 is added.
- Arithmetic operators are now supported. (Refer to the documentation for each operator for how infinite values are handled.)
- This adds a dependency on num-traits.
- The
from_f32andfrom_f64functions are added to convert more intuitively from floating-point values.
- This library now references
coreinstead ofstdso it can be used without the full standard library. - Additional documentation is added.
- The variants of
Infinitableare now re-exported, so you can typeFinite(x)instead ofInfinitable::Finite(x). - The
finite_or_infinity()andfinite_or_negative_infinity()methods are added to convert from an optional finite value to an infinitable. (Note: This item is missing from the changelog included in the release.) - The
Infinitabletype now implements theHashtrait.
- Negation operator is now supported.
- The
Infinitabletype now implements theFromtrait, as well as theDisplay,Copy, andClonetraits as appropriate (that is, when the underlying type implements them).
- The
finite()method is added to extract an optional finite value. - The
Infinitabletype now implements theDebugtrait. - The public API is fully documented.
- The URL in the license is fixed (previously it pointed to the original C++ implementation of the library).
- Initial version supports equality and comparison operators.