diff --git a/README.md b/README.md index 5999a7b..298a296 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,23 @@ numeric primitives are implemented. That is, you can use [`From`] or ## What’s new +### Version 0.3.4 news (unreleased) + + * The [`traits`] module was added, with its traits [`LossyFrom`], + [`LossyInto`], [`FromFixed`] and [`ToFixed`]. + * All types implementing the sealed traits [`Int`], [`Float`] and + [`Fixed`] now also implement [`FromFixed`] and [`ToFixed`]. + * The sealed trait [`Fixed`] now has provided conversion methods. + +[`Fixed`]: https://docs.rs/fixed/0.3.4/fixed/sealed/trait.Fixed.html +[`Float`]: https://docs.rs/fixed/0.3.4/fixed/sealed/trait.Float.html +[`FromFixed`]: https://docs.rs/fixed/0.3.4/fixed/traits/trait.FromFixed.html +[`Int`]: https://docs.rs/fixed/0.3.4/fixed/sealed/trait.Int.html +[`LossyFrom`]: https://docs.rs/fixed/0.3.4/fixed/traits/trait.LossyFrom.html +[`LossyInto`]: https://docs.rs/fixed/0.3.4/fixed/traits/trait.LossyInto.html +[`ToFixed`]: https://docs.rs/fixed/0.3.4/fixed/traits/trait.ToFixed.html +[`traits`]: https://docs.rs/fixed/0.3.4/fixed/traits/index.html + ### Version 0.3.3 news (2019-06-27) * Conversions to/from [`isize`] and [`usize`] were added. diff --git a/RELEASES.md b/RELEASES.md index 3941c2e..5b48912 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -5,6 +5,15 @@ modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty. --> +Version 0.3.4 (unreleased) +========================== + + * The `traits` module was added, with its traits `LossyFrom`, + `LossyInto`, `FromFixed` and `ToFixed`. + * All types implementing the sealed traits `Int`, `Float` and + `Fixed` now also implement `FromFixed` and `ToFixed`. + * The sealed trait `Fixed` now has provided conversion methods. + Version 0.3.3 (2019-06-27) ========================== @@ -25,8 +34,8 @@ Version 0.3.0 (2019-02-03) ========================== * Incompatible change: the return type of `to_int` is now generic. - * Incompatible change: the `Int` trait implementation for [`bool`] - was removed. + * Incompatible change: the `Int` trait implementation for `bool` was + removed. * The new method `to_fixed` was added. * The new methods `checked_to_fixed`, `checked_to_int`, `saturating_to_fixed`, `saturating_to_int`, `wrapping_to_fixed`,