3 Primitive types can be converted to each other through [casting].
5 Rust addresses conversion between custom types (i.e., `struct` and `enum`)
6 by the use of [traits]. The generic
7 conversions will use the [`From`] and [`Into`] traits. However there are more
8 specific ones for the more common cases, in particular when converting to and
11 [casting]: types/cast.md
13 [`From`]: https://doc.rust-lang.org/std/convert/trait.From.html
14 [`Into`]: https://doc.rust-lang.org/std/convert/trait.Into.html