Loading tutorials
String and &mut references work, and how to handle a Result with match. You should also be able to run a program with cargo run. Here you will read one line of text from the keyboard and learn what read_line does to your String.2 min readString and &mut references work, and the basics of Result. It also assumes you can run a program with cargo run. The previous chapter showed read_line filling a String. This chapter covers the value read_line returns and what to do w2 min readread_line program, you know the difference between String and &str, and you can run programs with cargo run.2 min readread_line into a String, handle its io::Result with expect or ?, and trim the trailing newline. Here you turn that text into typed values.2 min readread_line, handle its io::Result with ?, and run programs with cargo run. Here you will make a prompt such as Enter your age: appear before the program waits for input.2 min readread_line, handle its io::Result with ?, and use trim and parse. Here you learn how a program notices that no more input is coming.3 min readread_line, trim its result, and parse it into a number. You also know how to flush stdout after print!. This chapter combines those pieces in a loop, so a typo doesn't end the program.2 min readString and &str, Result, and how to run a program with cargo run. You should also have seen read_line and parse in earlier chapters.2 min readread_line, handle its io::Result, and call parse on trimmed text. You should also be comfortable with match and with &str versus String. Here you will turn one line such as 3 14 -7 into several typed values.2 min readread_line, handle an io::Result with ?, and iterate over lines() on a locked stdin. Here you will read everything until end of input in a single call.3 min readResult, the ? operator, and read_line from the earlier chapters. It also assumes you have used str::parse and know what a trait is at a basic level.3 min read? with Result, and run cargo test. It also assumes you have read the earlier chapters on read_line, lines(), and parse.2 min read