pub trait ScanUtil { fn scan_num<F>(&self) -> Option<(F, usize)> where F: FromStr; fn scan_char(&self, radix: u32) -> Option<(char, usize)>; }