- Support cast to self, useful in generics (#28)
- Document feature assert_digits and imply by always_assert (#26)
- Reorganise code (#20)
- Bump MSRV to 1.53.0 (#21)
- Add default implementations of
conv
methods over equivalenttry_conv
variant to facilitate custom implementations (#21) - Add
ConvApprox
andCastApprox
, supporting approximate conversions with unspecified rounding, implemented forf64 → f32
and all type conversions supported byConv
(#21) - Support
Conv
andConvFloat
for arrays and tuples (#21) - Remove
impl<T> Conv<T> for T
(#21) - Add
easy_cast::Result
type alias (#22) - Move traits into new
easy_cast::traits
public module (#23)
- Fix negative int to float digits check (#18)
- Unify some macros via
impl_int_generic
(#16) - Improve error messages in asserts (#17)
- Fix
i16::conv(1usize)
(#15) - Update README (#15)
- Fix
conv(0)
from int to float (#14)
- Add
try_conv
andtry_cast
methods (#12) - Add
try_conv_nearest
etc. (#12) - Removed
Conv<f64> for f32
(#12) - Replaced
assert_range
andassert_non_neg
withassert_int
(#12) - MSRV is 1.32.0 (#12)
- Add
conv_trunc
/cast_trunc
(#11) - Explicitly support Rust 1.36.0 (and potentially older; #10)
- Support
no_std
(#10) - Fix rounding for
floor
on negative values (#10)
- Add feature flags controlling assert behaviour
- Remove restrictions on isize/usize (#6)
- Fix bad revert checks (#6)