Skip to content

Commit cb328e7

Browse files
UbuntuUbuntu
authored andcommitted
Reference the casting doc for primitive conversions
1 parent d6d8769 commit cb328e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/conversion.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Conversion
22

3-
Rust addresses conversion between types by the use of [traits]. The generic
3+
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
47
conversions will use the [`From`] and [`Into`] traits. However there are more
58
specific ones for the more common cases, in particular when converting to and
69
from `String`s.
710

11+
[casting]: types/cast.md
812
[traits]: trait.md
913
[`From`]: https://doc.rust-lang.org/std/convert/trait.From.html
1014
[`Into`]: https://doc.rust-lang.org/std/convert/trait.Into.html

0 commit comments

Comments
 (0)