File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ The associated item has a path of a path to the implementing type followed by
24
24
the associate item's path component. Inherent implementations cannot contain
25
25
associated type aliases.
26
26
27
- A type can also have multiple inherent implementations but the implementing type
28
- must be defined within the same crate.
27
+ A type can also have multiple inherent implementations. An implementing type
28
+ must be defined within the same crate as the original type definition .
29
29
30
30
``` rust
31
31
struct Point {x : i32 , y : i32 }
@@ -45,6 +45,7 @@ my_point.log();
45
45
A _ trait implementation_ is defined like an inherent implementation except that
46
46
the optional generic type declarations is followed by a [ trait] followed
47
47
by the keyword ` for ` . Followed by a path to a nominal type.
48
+
48
49
<!-- To understand this, you have to back-reference to the previous section. :( -->
49
50
50
51
The trait is known as the _ implemented trait_ . The implementing type
You can’t perform that action at this time.
0 commit comments