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 12c3e29 commit 05cc2ffCopy full SHA for 05cc2ff
src/traits/from-into.md
@@ -23,3 +23,11 @@ fn main() {
23
println!("{s}, {addr}, {one}, {bigger}");
24
}
25
```
26
+
27
+<details>
28
29
+* That's why it is common to only implement `From`, as your type will get `Into` implementation too.
30
+* When declaring a function argument input type like "anything that can be converted into a `String`", the rule is opposite, you should use `Into`.
31
+ Your function will accept types that implement `From` and those that _only_ implement `Into`.
32
33
+</details>
0 commit comments