June 2024
Beginner to intermediate
320 pages
8h 59m
English
Result for better error handlingTokenStream as an alternative to creating a new onesyn::Error or proc_macro_errorUntil now, most of our code has focused on structs and enums, with very basic error handling. All of that changes right now! In this chapter, we will manipulate functions, changing panics into Results, which is a better and more idiomatic way of handling errors in Rust. This is a useful segue into seeing how we can manipulate ...
Read now
Unlock full access