Generic Types in Rust

preview_player
Показать описание
The ultimate Rust lang tutorial. Follow along as we go through the Rust lang book chapter by chapter.

0:00 Intro
0:24 Extracting Functions
3:26 Generic Function Arguments
5:50 Generics in Struct Definitions
7:44 Generics in Enum Definitions
8:29 Generics in Method Definitions
14:01 Performance Impact
14:55 Outro

#letsgetrusty​ #rust​lang #tutorial
Рекомендации по теме
Комментарии
Автор

as a C# Developer this looks just like im using it in C#, Rust is really awesome

Kollegah
Автор

Your explanation is really easy to understand, thank you!

koustubh
Автор

backgroud music is very distracting..please try to avoid it

naitikmakwana
Автор

I recently discovered your channel I like it so far. I'm big fan of Rust, I cannot say I'm still good at it though. Keep up the good work.

antonioquintero-felizzola
Автор

This was very well explained. Thank you Bogdan!

TheEmbeddedLinuxDude
Автор

This was a super helpful overview - great job!

tombo
Автор

Love your content. The whole way through this video I was certain there would be a performance hit i.e. type coercion (sorry PHP and JS dev here) Then you mentioned it is taken care of! Loving this - thank you so much!

lawless
Автор

Fabulous Man !!! I was going through the rust book for quite some time, but the topics I was able to cover using ur playlist is far more in great pace !!! tysm, just love ur teaching style !!
Can see lot of traction of using rust in blockchain, could you make something building common concepts in blokchain using RUST, I guess this will bring lot of traction to ur channel too :)

bjugdbjk
Автор

Thank YOu Bogdan You are really doing superb. <3

teachforyou
Автор

Excellent video on a topic that can be difficult for some.

NFLStudy
Автор

It doesn't slow down performance but it should be noted that heavy use of generics makes your binaries larger.

samuelwittlinger
Автор

c++ added similar feature in c++20. Basically, this feature is introduced to programming after 2015. People waited for it for at least 20 years.

hanyanglee
Автор

this channel as become a school for me

cleverengineer
Автор

You mentioned that the all needed versions of a generic are created at compile time. So are generics implemented using type erasure like in java or how does it work under the hood?

redcrafterlppa
Автор

Do you have an Option and Result enums as a tattoos on your arms?

rotteegher
Автор

Looks pretty much like swift ) thank you for your tuts

maksymrachytskyy
Автор

question: 11:18, why fn mixup can not have &self argument? it fails due to T does not implemnt Copy Trait, but why this missing Copy Trait works with self as not a reference? I though that T has no Copy Trait no matter self is a reference or not.

adrian_spdef
Автор

men you are better than undemy tutorials.

filipbarbaric
Автор

How do you cast generic type to primitive? Example minutes 09:41, line 8, &self.x + 1

Taetae_
Автор

I really think traits are a really good way to limit your template and make them safer, wish we had those in java too (we have something similar but not close, i.e., we can extend from prebuilt classes so that the T type can be only of a child type of only a particular class)

sahilverma