3.0 KiB
3.0 KiB
Version 1.2.1 (2022-07-25)
- Fix build issue using rustc 1.64.0-nightly under Windows.
Version 1.2.0 (2021-11-24)
- The following traits were added, which can be used for constraints in the opposite direction to the other cast traits.
Version 1.1.2 (2021-08-23)
Version 1.1.1 (2021-03-25)
- The
track_caller
attribute is now applied to panicking functions if supported by the compiler.
Version 1.1.0 (2021-02-03)
- Unwrapped casts were added, which panic on overflow even when debug assertions are not enabled.
Version 1.0.0 (2020-04-18)
- All deprecated items were removed.
Version 0.3.1 (2020-04-17)
- Static casts were deprecated as their use case was unclear.
Version 0.3.0 (2019-10-01)
- The behavior of static casts was changed: now they return
Option
, but an implementation should either always returnSome
or always returnNone
. - Bug fix: checked casts from floating-point to wrapped integers were panicking for infinite or NaN.
Version 0.2.0 (2019-09-10)
- The old
*As
traits were renamed to*Cast
. - New more convenient
*As
traits were added.
Version 0.1.0 (2019-09-09)
- Conversions between integers and floating-point numbers.
- Checked, saturating, wrapping and overflowing conversions.
- Static conversions when the conversion cannot fail.
- Rounding conversions from floating-point numbers to integers using
Round
.