Intro to Rust (Enumerations and Options)

in #technology6 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.30
TRX 0.12
JST 0.033
BTC 64029.44
ETH 3157.04
USDT 1.00
SBD 4.02