What are Associated Functions in Rust?

preview_player
Показать описание


Next video:

Time codes
Рекомендации по теме
Комментарии
Автор

Can you explain associated functions that aren't methods, why these function can not be used on the instance of a type (struct), and how compiler knows it's an associated function, but it is or its not a method? In a nutshell, what is the diff btw associated functions with that aren't methods and associated function that are methods. ?

farazalidev