Back to course overview:Rust

Lesson 10 of 16 · Everyday Rust

Simple Error Handling in Rust

Let's Get Rusty24mVideoOptional

Result, Option and the question-mark operator, which is how essentially all real Rust code deals with failure. Learn this early or you will write unwrap() everywhere and regret it.

Optional — ticking this does not change your percentage.

Video not playing? Some channels disable embedding, and there is no way around it.Open on YouTubeinstead — then come back and mark it complete.