Josh Stone
ac503261ca
Forward FloatCore to inherent methods when possible
2018-02-27 16:33:04 -08:00
Vinzent Steinberg
efad5329b4
Rename CoreFloat to FloatCore
2018-02-07 12:34:14 +01:00
Vinzent Steinberg
8a7f383eb1
Implement CoreFloat trait
...
This is a subset of the `Float` trait, but works with `no_std`.
Some code was simplified by using `CoreFloat`.
2018-02-02 19:48:25 +01:00
Josh Stone
e6bb97b3ac
Make `Float` and `Real` depend on the `std` feature
...
We don't have implementations for many of the methods in `no_std`. It's
hostile to external implementors if some trait methods are conditional
on a feature, as that feature could be added by anyone in a dependency
tree. Instead, let's just live without these traits for now.
2018-01-31 15:56:06 -08:00
Vinzent Steinberg
a843027b56
Re-introduce the std feature
...
This is a port of @vks's rust-num/num#296 , but without the feature-
toggled changes to `Float`.
2018-01-31 15:42:55 -08:00
Eduardo Pinho
31218add95
Include note for implementers of AsPrimitive
2018-01-14 21:23:19 +00:00
Eduardo Pinho
af693fef48
Add safety notice in AsPrimitive docs
2017-12-21 21:03:25 +00:00
Eduardo Pinho
773a222237
Add conversions from `bool` in `AsPrimitive`
2017-12-20 21:41:45 +00:00
Eduardo Pinho
741e1f4e09
Add AsPrimitive trait, impls and tests
2017-12-20 00:05:36 +00:00
Josh Stone
42a610d323
Move num-traits to its own repo
...
All the prior `num` history is kept, so old `num-traits` tags are still
valid, but future development here will be just for `num-traits`.
2017-12-18 17:35:41 -08:00