Trevor Spiteri
41d57b242f
fmt nit in doc example
2020-05-11 19:53:25 +02:00
Trevor Spiteri
7b9097191f
add some tests
2020-05-11 19:53:22 +02:00
Trevor Spiteri
b6219e3b39
implement LosslessTryFrom for lossless integer <-> float combinations
2020-05-11 19:53:20 +02:00
Trevor Spiteri
7db5683fe5
implement LosslessTryFrom for lossless fixed <-> float combinations
2020-05-11 19:53:15 +02:00
Trevor Spiteri
be53ccdc32
implement LosslessTryFrom for all fixed<U0> -> integer combinations
2020-05-11 19:53:12 +02:00
Trevor Spiteri
a0ddcbee2d
implement LosslessTryFrom for all integer -> fixed combinations
2020-05-11 19:53:09 +02:00
Trevor Spiteri
694ae24d77
add LosslessTry{From,Into} and immplement them for Fixed <-> Fixed
2020-05-11 19:52:59 +02:00
Trevor Spiteri
c762dadfbc
improve first line of module docs
2020-05-11 19:49:46 +02:00
Trevor Spiteri
5cb690a076
fix typos in tests and release notes
2020-05-11 19:49:12 +02:00
Trevor Spiteri
5eb8cdf5c3
add names to some constants
2020-05-11 19:43:17 +02:00
Trevor Spiteri
b22a08b66f
add golden ratio and its conjugate to constants
2020-05-11 19:42:47 +02:00
Trevor Spiteri
1167020994
document impl blocks
2020-05-11 19:39:50 +02:00
Trevor Spiteri
1b95649362
tweak wording on version 2 plan
2020-05-11 19:39:37 +02:00
Trevor Spiteri
98f7c089dc
remove reimplementation of wrapping_signum in Wrapping::signum
2020-05-11 19:39:22 +02:00
Trevor Spiteri
0cd12464cf
add comment to signed round_to_zero about not being truncation
2020-05-10 19:09:15 +02:00
Trevor Spiteri
5b7d05b775
docs: change wording from truncate to discard fractional bits
...
Truncation might be interpreted to mean rounding towards zero, which
is not what happens in negative two's-complement fixed-point numbers.
So "extra fractional bits are truncated" is better as "extra
fractional bits are discarded, which rounds towards −∞."
2020-05-10 18:43:22 +02:00
Trevor Spiteri
961d36aa2a
update half dependency to 1.6
2020-05-10 10:49:09 +02:00
Trevor Spiteri
c13ab2e324
add wrapping_next_power_of_two
2020-05-10 01:13:24 +02:00
Trevor Spiteri
dfb59cefc0
add leading_ones and trailing_ones
2020-05-10 01:09:41 +02:00
Trevor Spiteri
609f75575f
fmt nit in doc example
2020-05-08 15:55:49 +02:00
Trevor Spiteri
2b4e051ded
add some tests
2020-05-08 15:43:01 +02:00
Trevor Spiteri
e3fe9b7f9c
implement LosslessTryFrom for lossless integer <-> float combinations
2020-05-08 15:19:09 +02:00
Trevor Spiteri
c2847491cb
implement LosslessTryFrom for lossless fixed <-> float combinations
2020-05-08 14:23:23 +02:00
Trevor Spiteri
c196899bcc
implement LosslessTryFrom for all fixed<U0> -> integer combinations
2020-05-08 13:31:50 +02:00
Trevor Spiteri
234dbfecdc
implement LosslessTryFrom for all integer -> fixed combinations
2020-05-08 13:20:47 +02:00
Trevor Spiteri
bc5e01120f
add LosslessTry{From,Into} and immplement them for Fixed <-> Fixed
2020-05-08 12:41:35 +02:00
Trevor Spiteri
f23ddc6616
improve first line of module docs
2020-05-08 00:51:56 +02:00
Trevor Spiteri
eebb76e7b0
fix typos in tests and release notes
2020-05-08 00:37:14 +02:00
Trevor Spiteri
232decb692
add names to some constants
2020-05-07 23:48:48 +02:00
Trevor Spiteri
37167fddd0
add golden ratio and its conjugate to constants
2020-05-07 23:36:35 +02:00
Trevor Spiteri
eb7e369775
document impl blocks
2020-05-03 17:56:04 +02:00
Trevor Spiteri
ff0874a1f4
require rustc 1.43.0
...
Will probably bump requirement to 1.44.0 before releasing 1.0.0 so
that {from,to}_{le,be,ne}_bytes can be const fn.
2020-05-03 16:08:11 +02:00
Trevor Spiteri
48a763c01f
tweak wording on version 2 plan
2020-05-02 21:22:46 +02:00
Trevor Spiteri
eb51b85db5
remove reimplementation of wrapping_signum in Wrapping::signum
2020-05-02 21:19:44 +02:00
Trevor Spiteri
879861b875
remove deprecated items
2020-05-01 18:28:17 +02:00
Trevor Spiteri
bf239e9c76
update az dependency to version 1
2020-05-01 18:17:00 +02:00
Trevor Spiteri
079a13ca1b
version 0.5.6
2020-05-01 18:15:40 +02:00
Trevor Spiteri
86b542e7f3
add Lossy{From,Into} to prelude
2020-05-01 17:40:53 +02:00
Trevor Spiteri
0adbf4435e
at least one more release before 1.0.0 to deprecate items
2020-04-18 19:28:05 +02:00
Trevor Spiteri
672973c99f
Revert "remove deprecated items"
...
This reverts commit f67aed0078
.
2020-04-18 19:13:08 +02:00
Trevor Spiteri
df6ee41110
Revert "update az dependency to version 1"
...
This reverts commit aab8d47d8d
.
2020-04-18 19:09:22 +02:00
Trevor Spiteri
74f0e4f575
add checked versions of signum
2020-04-18 18:15:22 +02:00
Trevor Spiteri
b3a16a967a
insert dev in url of development version doc
2020-04-18 16:01:15 +02:00
Trevor Spiteri
aab8d47d8d
update az dependency to version 1
2020-04-18 02:31:25 +02:00
Trevor Spiteri
339bd1f5aa
specify version 2 when talking about const generics plan
2020-04-18 02:29:04 +02:00
Trevor Spiteri
f67aed0078
remove deprecated items
2020-04-18 02:21:17 +02:00
Trevor Spiteri
7585a665a5
make doc of master branch available on gitlab pages
2020-04-18 01:08:00 +02:00
Trevor Spiteri
8c6a36bf39
ci: clean up tarpaulin script
2020-04-18 00:10:01 +02:00
Trevor Spiteri
f8f9bd69ba
add some coverage
2020-04-17 22:11:57 +02:00
Trevor Spiteri
8d8fde75c5
remove unused functions
2020-04-17 21:48:25 +02:00