Rust Extension Methods - Rust At Work [Episode 1]

preview_player
Показать описание
Welcome to one of my brand new series called Rust at work. In this video we look at Rust Extension Methods. Extension methods are a way of extending an existing type such as a Vector or even the String type.

Click the notification after you subscribe to get notified of when a new video comes out.

Rate | Comment | Subscribe
Рекомендации по теме
Комментарии
Автор

I don't get why we need to have a fake trait, instead of being able to just another impl block for the type. I tried and compiler complains cause Vec is not in my module. I am not sure what they are trying to prevent by forbidding that...

David-wsrw
Автор

why don't use self.iter().sum() as return value for the method? ;D

dutchghst
Автор

The font size is to small. Very difficult to read the code.

michaelgroncki