mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-16 07:36:05 +02:00
parent
d2f8fc4ac5
commit
1723baee47
@ -37,7 +37,7 @@ fn main() {
|
|||||||
is simple.
|
is simple.
|
||||||
|
|
||||||
- Implementations of the trait do not need to cover all possible type
|
- Implementations of the trait do not need to cover all possible type
|
||||||
parameters. Here, `Foo::From("hello")` would not compile because there is no
|
parameters. Here, `Foo::from("hello")` would not compile because there is no
|
||||||
`From<&str>` implementation for `Foo`.
|
`From<&str>` implementation for `Foo`.
|
||||||
|
|
||||||
- Generic traits take types as "input", while associated types are a kind of
|
- Generic traits take types as "input", while associated types are a kind of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user