Function gomoku::board::fn_str::atoi [] [src]

pub fn atoi<T>(s: &str) -> Result<T, &'static str> where T: FromStr

Like the c function atoi, trim space and tabs at the beginning of the string and then parse to the T integer type the following number chars.

Return an error the first non space char is different from a number.