Focus mode
Traits enable us to abstract over behavior that types can share. A trait informs the Rust compiler on the capability that a certain type possesses and may share with other types.
To understand traits in more detail, additional resources can be found here:
https://www.youtube.com/watch?v=6rcTSxPJ6Bw&t=9s
https://www.youtube.com/watch?v=T0Xfltu4h3A
You can find detailed further information from Rust Official documentation:
https://doc.rust-lang.org/book/ch10-02-traits.html
Resources:
https://alexeden.github.io/learning-rust/programming_rust/11_traits_and_generics.html
Programs to Accelerate Your Progress in a Software Career
Join our 4-8 month intensive Patika+ bootcamps, start with the fundamentals and gain comprehensive knowledge to kickstart your software career!
You need to enroll in the course to be able to comment!