File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1520,11 +1520,11 @@ impl Shape for Circle {
1520
1520
```
1521
1521
1522
1522
It is possible to define an implementation without referring to a trait. The
1523
- methods in such an implementation can only be used as direct calls on the
1524
- values of the type that the implementation targets. In such an implementation,
1525
- the trait type and ` for ` after ` impl ` are omitted. Such implementations are
1526
- limited to nominal types (enums, structs), and the implementation must appear
1527
- in the same crate as the ` self ` type:
1523
+ methods in such an implementation can only be used as direct calls on the values
1524
+ of the type that the implementation targets. In such an implementation, the
1525
+ trait type and ` for ` after ` impl ` are omitted. Such implementations are limited
1526
+ to nominal types (enums, structs, trait objects ), and the implementation must
1527
+ appear in the same crate as the ` self ` type:
1528
1528
1529
1529
```
1530
1530
struct Point {x: i32, y: i32}
You can’t perform that action at this time.
0 commit comments