1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use crate::io_read_token::read_token; pub fn read_stdin<T>() -> Result<T, <T as std::str::FromStr>::Err> where T: std::str::FromStr, { read_token(&mut std::io::stdin().lock()) } #[cfg(test)] mod tests { #[test] fn test() {} }