← findnix.eu
🎬 video.infosec.exchange video.infosec.exchange

Rust 101 - 14: Some standard library traits

⏱ 27:19 🌐 video.infosec.exchange

A tour of some of the most interesting traits in the standard library including `Add` etc. to overload operators, `Sized`, `Sync` and `Send` for telling the compiler special things about your type, `Clone` and `Copy` for copying things, `Into` and `From` for converting, `AsRef` and `AsMut` for making your APIs flexible, `Default` for easy creation, and `Drop` which is called when your object is deleted. Also a few words on what happens when you call a function with generic type parameters. Links: * Exercises: https://artificialworlds.net/presentations/rust-101/exercises/A3-traits-generics/mod.html * Slides: https://artificialworlds.net/presentations/rust-101/A3-traits-generics Rust 101 is a series of videos explaining how to write programs in Rust. The course materials for this series are developed by tweede golf. You can find more information at https://github.com/tweedegolf/101-rs and you can sponsor the work at https://github.com/sponsors/tweedegolf . They are released under the C

β†—https://video.infosec.exchange/w/4Jpx53y8Du5vAVUFrCcu5f
drop programming rust sized traits
Indexiert von findnix.eu Β· Eigene Seite einreichen