1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-27 00:09:11 +02:00
comprehensive-rust/src/traits/important-traits.md
2022-12-21 16:38:28 +01:00

328 B

Important Traits

We will now look at some of the most common traits of the Rust standard library:

  • Iterator and IntoIterator used in for loops,
  • From and Into used to convert values,
  • Read and Write used for IO,
  • Add, Mul, ... used for operator overloading, and
  • Drop used for defining destructors.