@@ -26,8 +26,9 @@ at run time by the program. It occupies a contiguous region of memory.
26
26
### Associated item
27
27
28
28
An associated item is an item that is associated with another item. Associated
29
- items are defined in [ implementations] and declared in [ traits] . Only functions,
30
- constants, and type aliases can be associated.
29
+ items are defined in [ implementations] and declared in [ traits] . Only
30
+ functions, constants, and type aliases can be associated. Contrast to a [ free
31
+ item] .
31
32
32
33
### Bound
33
34
@@ -59,13 +60,14 @@ and functions that evaluate to a single value, with or without side-effects.
59
60
60
61
For example, ` 2 + (3 * 4) ` is an expression that returns the value 14.
61
62
62
- ### Free function
63
+ ### Free item
63
64
64
- A [ function] that is not a member of an [ implementation] .
65
+ An [ item] that is not a member of an [ implementation] , such as a * free
66
+ function* or a * free const* . Contrast to an [ associated item] .
65
67
66
68
### Inherent implementation
67
69
68
- An [ implementation] that applies to a nominal type, not to a trait.
70
+ An [ implementation] that applies to a nominal type, not to a trait-type pair .
69
71
[ More] [ inherent implementation ] .
70
72
71
73
### Inherent method
@@ -158,11 +160,14 @@ or unintended computation; or platform-specific results.
158
160
[ More] [ undefined-behavior ] .
159
161
160
162
[ alignment ] : type-layout.html#size-and-alignment
163
+ [ associated item ] : #associated-item
161
164
[ enums ] : items/enumerations.html
165
+ [ free item ] : #free-item
162
166
[ function ] : items/functions.html
163
167
[ implementation ] : items/implementations.html
164
168
[ implementations ] : items/implementations.html
165
169
[ inherent implementation ] : items/implementations.html#inherent-implementations
170
+ [ item ] : items.html
166
171
[ method ] : items/associated-items.html#methods
167
172
[ object safety ] : items/traits.html#object-safety
168
173
[ structs ] : items/structs.html
0 commit comments