Skip to content

Commit 6a78aa5

Browse files
committed
Type constructors, not types
1 parent 398ef3e commit 6a78aa5

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

src/glossary.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,23 @@ For example, `2 + (3 * 4)` is an expression that returns the value 14.
7373
An [item] that is not a member of an [implementation], such as a *free
7474
function* or a *free const*. Contrast to an [associated item].
7575

76-
### Fundamental type
76+
### Fundamental type constructors
7777

78-
Includes `&`, `&mut`, `Box` and `Pin`. Any time a type `T` is
79-
considered [local](#local-type), `&T`, `&mut T`, `Box<T>`, and `Pin<T>` are also considered local.
80-
Fundamental types cannot [cover](#uncovered-type) other types. Any time the term "covered type" is
81-
used, the `T` in `&T`, `&mut T`, `Box<T>`, and `Pin<T>` is not considered covered.
78+
Fundamental type constructors are XXXX.
79+
80+
All of
81+
82+
- `&`
83+
- `&mut`
84+
- `Box`
85+
- `Pin`
86+
87+
are fundamental type constructors.
88+
89+
Any time a type `T` is considered [local](#local-type), `&T`, `&mut T`, `Box<T>`, and `Pin<T>`
90+
are also considered local. Fundamental type constructors cannot [cover](#uncovered-type) other types.
91+
Any time the term "covered type" is used,
92+
the `T` in `&T`, `&mut T`, `Box<T>`, and `Pin<T>` is not considered covered.
8293

8394
### Inhabited
8495

src/items/implementations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,5 +228,5 @@ attributes].
228228
[Unsafe traits]: traits.md#unsafe-traits
229229
[local trait]: ../glossary.md#local-trait
230230
[local type]: ../glossary.md#local-type
231-
[fundamental types]: ../glossary.md#fundamental-type
231+
[fundamental types]: ../glossary.md#fundamental-type-constructors
232232
[uncovered type]: ../glossary.md#uncovered-type

0 commit comments

Comments
 (0)