fix(deps): update rust crate num-traits to 0.2.19 - autoclosed #78
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.2
->0.2.19
Release Notes
rust-num/num-traits (num-traits)
v0.2.19
Compare Source
Float::clamp
limits values by minimum and maximumContributors: @cuviper, @michaelciraci
v0.2.18
Compare Source
Euclid::div_rem_euclid
andCheckedEuclid::checked_div_rem_euclid
methodscompute and return the quotient and remainder at the same time.
TotalOrder
trait implements the IEEE 754totalOrder
predicate.ConstZero
andConstOne
traits offered associated constants,extending the non-const
Zero
andOne
traits for types that have constant values.Contributors: @andrewjradcliffe, @cuviper, @tarcieri, @tdelabro, @waywardmonkeys
v0.2.17
Compare Source
Contributors: @robamu
v0.2.16
Compare Source
ToBytes
andFromBytes
traits convert to and from byterepresentations of a value, with little, big, and native-endian options.
Float::is_subnormal
method checks for subnormal values, witha non-zero magnitude that is less than the normal minimum positive value.
Contributors: @ctrlcctrlv, @cuviper, @flier, @GuillaumeGomez, @kaidokert,
@rs017991, @vicsn
v0.2.15
Compare Source
Euclid
trait calculates Euclidean division, where theremainder is always positive or zero.
LowerBounded
andUpperBounded
traits separately describetypes with lower and upper bounds. These traits are automatically implemented
for all fully-
Bounded
types.Float::copysign
method copies the sign of the argument toto the magnitude of
self
.PrimInt::leading_ones
andtrailing_ones
methods are thecomplement of the existing methods that count zero bits.
PrimInt::reverse_bits
method reverses the order of all bitsof a primitive integer.
Num::from_str_radix
for floats, also ignoring case.Float
andFloatCore
use more fromlibm
when that is enabled.Contributors: @alion02, @clarfonthey, @cuviper, @ElectronicRU,
@ibraheemdev, @SparrowLii, @sshilovsky, @tspiteri, @XAMPPRocky, @Xiretza
v0.2.14
Compare Source
Contributors: @cuviper
v0.2.13
Compare Source
OverflowingAdd
,OverflowingSub
, andOverflowingMul
traitsreturn a tuple with the operation result and a
bool
indicating overflow.This may fix scenarios where
autocfg
probing doesn't work properly.f64
values tof32
now saturate to infinity. Theypreviously returned
None
because that was once thought to be undefinedbehavior, but rust#15536 resolved that such casts are fine.
Num::from_str_radix
documents requirements for radix support, whichare now more relaxed than previously implied. It is suggested to accept at
least
2..=36
without panicking, butErr
may be returned otherwise.Contributors: @cuviper, @Enet4, @KaczuH, @martin-t, @newpavlov
v0.2.12
Compare Source
WrappingNeg
trait will wrap the result if it exceeds theboundary of the type, e.g.
i32::MIN.wrapping_neg() == i32::MIN
.SaturatingAdd
,SaturatingSub
, andSaturatingMul
traitswill saturate at the numeric bounds if the operation would overflow. These
soft-deprecate the existing
Saturating
trait that only has addition andsubtraction methods.
FloatConst::{LOG10_2, LOG2_10}
.Contributors: @cuviper, @ocstl, @trepetti, @vallentin
v0.2.11
Compare Source
FloatConst::TAU
.autocfg
build dependency to 1.0.Contributors: @cuviper, @m-ou-se
v0.2.10
Compare Source
libm
dependency to 0.2.Contributors: @CryZe
v0.2.9
Compare Source
libm
dependency enables theFloat
andReal
traitsin
no_std
builds.clamp_min
andclamp_max
limit minimum and maximum valueswhile preserving input
NAN
s.from_str_radix
on invalid signs.Contributors: @cuviper, @dingelish, @HeroicKatora, @jturner314, @ocstl,
@Shnatsel, @termoshtt, @waywardmonkeys, @yoanlcq
v0.2.8
Compare Source
no_std
targets.Contributors: @cuviper
v0.2.7
Compare Source
CheckedShl
andCheckedShr
returnNone
.Zero::set_zero
andOne::set_one
will set values to theiridentities in place, possibly optimized better than direct assignment.
PrimInt
.Contributors: @cuviper, @dvdhrm, @ignatenkobrain, @lcnr, @samueltardieu
v0.2.6
Compare Source
pow(0, 0)
returns1
. Mathematically, this is notstrictly defined, but the current behavior is a pragmatic choice that has
precedent in Rust
core
for the primitives and in many other languages.WrappingShl
andWrappingShr
traits will wrap the shift countif it exceeds the bit size of the type.
Contributors: @cuviper, @edmccard, @meltinglava
v0.2.5
Compare Source
mul_add
now clarifies that it's not always faster.FromPrimitive
andToPrimitive
are more robust.Contributors: @cuviper, @frewsxcv
v0.2.4
Compare Source
Setting the
i128
crate feature now causes the build script to panic if suchsupport is not detected.
Contributors: @cuviper
v0.2.3
Compare Source
CheckedNeg
andCheckedRem
traits perform checkedNeg
andRem
, returningSome(output)
orNone
on overflow.no_std
implementation ofFloatCore::to_degrees
forf32
nowuses a constant for greater accuracy, mirroring rust#47919. (With
std
itjust calls the inherent
f32::to_degrees
in the standard library.)MulAdd
andMulAddAssign
traits perform a fused multiply-add. For integer types this is just a convenience, but for floating point
types this produces a more accurate result than the separate operations.
with Rust 1.26, enabled by the new
i128
crate feature. TheFromPrimitive
and
ToPrimitive
traits now also have corresponding 128-bit methods, whichdefault to converting via 64-bit integers for compatibility.
Contributors: @cuviper, @LEXUGE, @regexident, @vks
v0.2.2
Compare Source
None
on overflow,avoiding rustc's undefined behavior. This applies to the
cast
function and the traits
NumCast
,FromPrimitive
, andToPrimitive
.Contributors: @apopiak, @cuviper, @dbarella
v0.2.1
Compare Source
Float::clamp
limits values by minimum and maximumContributors: @cuviper, @michaelciraci
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.