Rustcast #6 - traits From and Into in Rust programming language

26 Views
45ghesgd1
0
Published on 14 Oct 2018 / In Rust

This tutorial explains traits From and Into, which are widely used for data type conversion in Rust.
They may be considered as an alternative to method overriding (that does not exist in Rust), which
allows you defined user friendly generic functions, that can work with different data types.

In the video you will also find a little coding session with an example.

CONTENT:
* Introduction of From and Into traits
* Taking a look at implementations of From trait in the standard library
* Coding session with an example how From and Into traits can be used in order to build a better function API.

LINKS:
* From (Rust doc): https://doc.rust-lang.org/std/....convert/trait.From.h
* Into (Rust doc): https://doc.rust-lang.org/std/....convert/trait.Into.h
* From and Into (Rust by example): https://doc.rust-lang.org/std/....convert/trait.Into.h

This video was produced with the following open source software:
* OpenShot: https://www.openshot.org/
* Inkscape: https://inkscape.org
* Gimp: https://www.gimp.org/
* Vokoscreen: https://github.com/vkohaupt/vokoscreen
* Audacity: https://www.audacityteam.org/
* LibreOffice: https://www.libreoffice.org/

Show more
0 Comments sort Sort by

Up next