New Rustacean
e003: No. more. nulls.

e003: No. more. nulls.

New Rustacean

16:51

About this episode

No More Nulls - Date: October 21, 2015 - Subject: Enumerated (enum) types, pattern matching, and meaningful return values. # Notes Today’s episode discusses, in order: - Enumerated types, with an eye to the difference between structs and enums, and to the differences between enums in C and in Rust. - Pattern matching, with a focus on using them with enumerated types and some discussion about how they differ from switch blocks in C-like languages. - Using the Option and Result enumerated types with pattern matching to provide meaningful returns from functions safely. ## Order There is a specific order to the examples below, and it is not the automatically-alphabetized order rendered by rustdoc. Instead, you should work through in the sequence they appear in the source: 1. RelatedishThings 2. demonstrate_basic_enumeration 3. demonstrate_match 4. get_an_option 5. demonstrate_option 6. get_a_result 7. demonstrate_result

More from New Rustacean

A story and a dream (and the promise of Rust): the final episode of New Rustacean!

16m

News: Rust 1.35

WASI, Option::copied, and the future of async/await syntax!

18m

Exposing Rust types and functions to C API consumers.

25m