pub fn scann<T: FromStr>() -> T
Examples found in repository?
examples/example.rs (line 6)
4 5 6 7 8 9 10 11 12 13 14 15 16
pub fn main() {
println!("Please input a number:");
let num: i64 = scann();
println!("You entered \"{}\"", num);
println!("Please input a list of numbers:");
let vec: Vec<i64> = scanvec();
println!("You entered \"{:?}\"", vec);
println!("Please input a string:");
let string = scanln();
println!("You entered \"{}\"", string);
}