commit | b99db4a687646c30c704f0b118511d2d74961c03 | [log] [tgz] |
---|---|---|
author | Dmitry Avershin <[email protected]> | Tue Aug 27 06:02:36 2024 +0000 |
committer | Dmitry Avershin <[email protected]> | Tue Aug 27 06:02:36 2024 +0000 |
tree | cddf0242bb53f39d0f5b9d0b3c46af8a8386b4a8 | |
parent | a0234fafa4ac14f6cb0cbc72bf5c013511815733 [diff] |
Marks itoa available in OEM apexes. Allows OEM apexes to use itoa as a dependency. Change-Id: I08c2113412730f1a238b4b9e532a9c2b87fc146a Test: m Bug: 346735862
This crate provides a fast conversion of integer primitives to decimal strings. The implementation comes straight from libcore but avoids the performance penalty of going through core::fmt::Formatter
.
See also ryu
for printing floating point primitives.
Version requirement: rustc 1.36+
[dependencies] itoa = "1.0"
fn main() { let mut buffer = itoa::Buffer::new(); let printed = buffer.format(128u64); assert_eq!(printed, "128"); }