November 2017
Intermediate to advanced
264 pages
5h 45m
English
However, in most cases, we would like to attempt to recover from the error and let the program continue. We have already seen the basic techniques used in Rust to do just this in the Result and Option section in Chapter 4, Structuring Data and Matching Patterns, and in the section Generic data structures and functions in this chapter.
Both the Option and Result types are generic types:
Read now
Unlock full access