You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-03 13:29:52 +02:00
@ -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
|
||||||
|
Reference in New Issue
Block a user