Function atoi::ascii_to_digit
[−]
[src]
pub fn ascii_to_digit<I>(character: u8) -> Option<I> where
I: Zero + One,
Converts an ascii character to digit
Example
use atoi::ascii_to_digit; assert_eq!(Some(5), ascii_to_digit(b'5')); assert_eq!(None, ascii_to_digit::<u32>(b'x'));