ba0a984a86
The Float trait in libstd is quite a large trait which has dependencies on cmath (libm) and such, which libcore cannot satisfy. It also has many functions that libcore can implement, however, as LLVM has intrinsics or they're just bit twiddling. This commit moves what it can of the Float trait from the standard library into libcore to allow floats to be usable in the core library. The remaining functions are now resident in a FloatMath trait in the standard library (in the prelude now). Previous code which was generic over just the Float trait may now need to be generic over the FloatMath trait. [breaking-change] |
||
---|---|---|
.. | ||
comm | ||
fmt | ||
hash | ||
io | ||
num | ||
path | ||
rt | ||
sync | ||
unstable | ||
ascii.rs | ||
bitflags.rs | ||
c_str.rs | ||
c_vec.rs | ||
cleanup.rs | ||
from_str.rs | ||
gc.rs | ||
lib.rs | ||
local_data.rs | ||
macros.rs | ||
option.rs | ||
os.rs | ||
owned.rs | ||
prelude.rs | ||
rc.rs | ||
reflect.rs | ||
repr.rs | ||
result.rs | ||
rtdeps.rs | ||
slice.rs | ||
str.rs | ||
strbuf.rs | ||
task.rs | ||
to_str.rs | ||
unicode.rs | ||
vec.rs |