Commit Graph

25 Commits

Author SHA1 Message Date
David Tolnay ef180dc6e7
Document sealed trait 2018-03-18 00:22:56 -07:00
David Tolnay f341315473
Remove trait methods from public API 2018-03-18 00:20:35 -07:00
Mike Hommey 70883abe4d Support no_std
Fixes #3.
2018-03-18 15:58:47 +09:00
Mike Hommey 9f3e867f04 Provide itoa::fmt to write to fmt::Write
Fixes #5.
2018-03-18 15:52:58 +09:00
Mike Hommey 39e80cca43 Prevent downstream implementations of the Integer trait 2018-03-18 15:49:59 +09:00
Mike Hommey ccdcae586f Move out impl Integer to a common macro 2018-03-17 10:16:02 +09:00
David Tolnay 13d1f096ea
Release 0.3.4 2017-09-16 14:30:35 -07:00
David Tolnay a3dadb1557
Suppress some clippy lints 2017-09-16 14:22:05 -07:00
David Tolnay 37d2fda49b
Pick up 4-characters-at-a-time fix from libcore
b0e55a83a8
2017-09-16 14:19:21 -07:00
David Tolnay 35106024c6
Indent macro body 2017-09-16 14:12:12 -07:00
David Tolnay 3e47651d90
Write u128 using only two divisions 2017-09-16 13:58:02 -07:00
David Tolnay 23d280dc7a
Simplify udivmodti4 for our special case
This isn't faster, just easier to understand.
2017-09-16 11:49:36 -07:00
Henning Ottesen 1d85a0c5f9 Copy udivmodti4 from compiler-builtins
Division with remainder on u128 is badly optimized by LLVM. Copying it
into our crate allows for inlining and proper optimization.
2017-09-14 23:52:42 +02:00
Henning Ottesen e9069ce1f1 Add support for 128-bit integers 2017-09-13 03:50:47 +02:00
Simon Sapin d954ca8451
Use a byte literal ASCII 0 instead of its decimal value. 2017-08-29 23:46:04 -07:00
David Tolnay b460ecbdc4
Release 0.3.3 2017-08-29 09:53:28 -07:00
Simon Sapin f5d656f81f
Reduce the amount of code generic on W: io::Write 2017-08-29 09:48:00 -07:00
Simon Sapin 220a8680ca
Include the minus sign in the same buffer, to only make a single write_all call. 2017-08-29 09:47:56 -07:00
David Tolnay 678a4b4524
Release 0.3.2 2017-08-22 19:50:39 -07:00
David Tolnay 0ac0d9c4aa
Set html_root_url to docs.rs 2017-08-22 19:50:16 -07:00
Anthony Ramine bd4884d34b Return the number of bytes written from itoa::write (fixes #6) 2017-01-28 22:14:54 +01:00
Anthony Ramine 07bd275999 Make itoa::write take a W instead of a &mut W 2017-01-28 22:12:59 +01:00
David Tolnay 97dad04178
Accept references to trait objects 2017-01-23 16:45:03 -08:00
David Tolnay 4369fc4dc7
Inline itoa::write 2016-06-25 15:09:31 -07:00
David Tolnay 92e5b742e9
itoa::write 2016-06-25 14:32:23 -07:00