flâneur — a map of the web's best reading

Unwrap - 100 Exercises To Learn Rust

rust-exercises.com · 260 words · saved by 1 readers

Ticket::new now returns a Result instead of panicking on invalid inputs. What does this mean for the caller? Unlike exceptions, Rust's Result forces you to handle errors at the call site. If you call a function that returns a Result, Rust won't allow you to implicitly ignore the error case. When you call a function that returns a Result, you have two key options:

Explore this link on the map →

saved by