We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6d8769 commit cb328e7Copy full SHA for cb328e7
src/conversion.md
@@ -1,10 +1,14 @@
1
# Conversion
2
3
-Rust addresses conversion between types by the use of [traits]. The generic
+Primitive types can be converted to each other through [casting].
4
+
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
9
from `String`s.
10
11
+[casting]: types/cast.md
12
[traits]: trait.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
0 commit comments