v0.9.0
Changes in v0.9.0
Major Changes
bnum
integers are now#[repr(transparent)]
, which solves #30.- The
Slice
struct is now#[repr(transparent)]
. - The bnum
wrapping_rem
method now has the same panic message aswrapping_rem
on primitive integers. unchecked_shl
andunchecked_shr
now take au32
as the shifting argument instead ofSelf
.- The implementations of
unchecked_shl
andunchecked_shr
forbnum
integers with64
-bit digits were previously incorrect; they have now been fixed. - The implementation of
Add<$Digit>
on allbnum
unsigned integers was previously incorrect; it has now been fixed. - The
lcm
method onbnum
integers no longer panics ifself
is zero; instead, it returns zero.
Minor Changes
- Added optional
zeroize
support. - Added optional
quickcheck
support. - Added optional
valuable
support. - Change from manual implementation of
PartialEq
andEq
to#[derive(PartialEq, Eq)]
: this fixes #32. - Added trait
BTryFrom
for fallible conversions between bnum integers - this is a temporary solution to #31. - Don't require the
std_rng
andsmall_rng
features of therand
crate except when testing.
Patches
- Improved performance for all
shr
methods (checked_shr
,wrapping_shr
, etc.).
Auto release notes
- v0.9.0 by @isaacholt100 in #33
Full Changelog: v0.8.0...v0.9.0