Skip to content

Commit b33b740

Browse files
committed
bare -> inherent
1 parent e296b3c commit b33b740

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/items/implementations.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,29 @@
22

33
An _implementation_ is an item that associates items with an *implementing type*.
44

5-
There are two types of implementations: Bare implementations and [trait]
5+
There are two types of implementations: inherent implementations and [trait]
66
implementations.
77

88
Implementations are defined with the keyword `impl`.
99

10-
## Bare Implementations
10+
## Interent Implementations
1111

12-
A bare implementation is defined as the sequence of the `impl` keyword, generic
13-
type declarations, a path to a nomial type, a where clause, and a bracketed
14-
set of associable items.
12+
An inherent implementation is defined as the sequence of the `impl` keyword,
13+
generic type declarations, a path to a nomial type, a where clause, and a
14+
bracketed set of associable items.
1515

1616
The nominal type is called the *implementing type* and the associable items are
1717
the *associated items* to the implementing type.
1818

19-
Bare implementations associate the associated items to the implementing type.
19+
Inherent implementations associate the associated items to the implementing
20+
type.
2021

2122
The associated item has a path of a path to the implementing type followed by
2223
the associate item's path component.
2324

24-
Bare implementations cannot contain associated type aliases.
25+
Inherent implementations cannot contain associated type aliases.
2526

26-
A type can have multiple bare implementations.
27+
A type can have multiple inherent implementations.
2728

2829
The implementing type must be defined within the same crate.
2930

@@ -42,8 +43,8 @@ my_point.log();
4243

4344
## Trait Implementations
4445

45-
A *trait implementation* is defined like a bare implementation except that
46-
the optional generic type declarations is followed by a trait followed
46+
A *trait implementation* is defined like an inherent implementation except that
47+
the optional generic type declarations is followed by a [trait] followed
4748
by the keyword `for`. <!-- To understand this, you have to back-reference to
4849
the previous section. :( -->
4950

0 commit comments

Comments
 (0)