Rust Programming Tutorial #37 - Option (Enum)

Veröffentlicht am: 14 Januar 2018
auf dem Kanal: dcode
22,766
541

The 'Option' Enum represents either a value (Some) or no value at all (None). It is common to see this in Rust with many methods and functions returning this particular type.

It's useful because it forces us to deal with unexpected situations such as when the expected return value of a function does not actually provide a value - because it doesn't exist or can't be found.

In this video we look at a common example of the Option Enum in use and we also define our own function that returns an Option type to truly understand how it works.

For your reference:
https://doc.rust-lang.org/std/option/...

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!


Auf dieser Seite können Sie das Online-Video Rust Programming Tutorial #37 - Option (Enum) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer dcode 14 Januar 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 22,766 Mal angesehen und es wurde von 541 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!