Intro to Rust (Enumerations and Options)

in #technology4 years ago

In this Rust tutorial, we look at the union type enumerations in Rust. We talk about how we can use Enum Methods for type Polymorphism and as well as how we can use Enumerations to create multiple custom types with variations. We also look at how we can use pattern matching to destructively expose our the basic types embedded in our Enum types. We look at Options and how they make Rust a null safe programming language by way of creating a Enumeration similar to Haskell's Maybe and Nothing types.

Sort:  

The @OriginalWorks bot has determined this post by @tensor to be original material and upvoted(1.5%) it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

Congratulations @tensor, this post is the third most rewarded post (based on pending payouts) in the last 12 hours written by a User account holder (accounts that hold between 0.1 and 1.0 Mega Vests). The total number of posts by User account holders during this period was 2335 and the total pending payments to posts in this category was $1846.60. To see the full list of highest paid posts across all accounts categories, click here.

If you do not wish to receive these messages in future, please reply stop to this comment.

Thank you for continuing to tell me this. It really helps me see my progression as an author on steemit.

I have heard of Rust but this was very interesting! I might look into it! Cheers!

Yeah rust is a great little programming language. It has the speed and features of C and C++ without having to worry about the safety and with a better lean towards concurrency.

Coin Marketplace

STEEM 0.49
TRX 0.09
JST 0.062
BTC 49193.22
ETH 4116.36
BNB 561.89
SBD 5.97