update release notes to mention new traits

This commit is contained in:
Trevor Spiteri 2019-08-02 15:40:22 +02:00
parent 34be1ff5e9
commit 225a0e8307
2 changed files with 28 additions and 2 deletions

View File

@ -39,6 +39,23 @@ numeric primitives are implemented. That is, you can use [`From`] or
## Whats 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.

View File

@ -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`,