Crate atoi [−] [src]
A crate for parsing integers directly form ASCII ([u8]
) without encoding them into utf8
first. The name is inspired by the famous C function.
Using str::from_utf8
and str::parse
is likely to be more idiomatic. Use this crate if you want to avoid decoding bytes into utf8
(e.g. for performance reasons).
Enums
Sign |
Representation of a numerical sign |
Traits
FromRadix10 |
Types implementing this trait can be parsed from a positional numeral system with radix 10 |
Functions
ascii_to_digit |
Converts an ascii character to digit |
atoi |
Parses an integer from a slice. |