Skip to content

Commit a286e1e

Browse files
authored
Merge pull request #2366 from DanielEScherzer/glossary-dyn-compatible-traits
Glossary: put "Dyn-compatible traits" in alphabetical order
2 parents fc518e9 + ef4965c commit a286e1e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎src/glossary.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ A crate is the unit of compilation and linking. There are different [types of cr
4949

5050
Dispatch is the mechanism to determine which specific version of code is actually run when it involves polymorphism. Two major forms of dispatch are static dispatch and dynamic dispatch. Rust supports dynamic dispatch through the use of [trait objects][type.trait-object].
5151

52+
### Dyn-compatible traits
53+
54+
[Traits] that can be used in [trait object types] (`dyn Trait`). Only traits that follow specific [rules][dyn compatibility] are *dyn compatible*.
55+
56+
These were formerly known as *object safe* traits.
57+
5258
### Dynamically sized type
5359

5460
A dynamically sized type (DST) is a type without a statically known size or alignment.
@@ -165,12 +171,6 @@ Within a namespace, names are organized in a hierarchy, where each level of the
165171

166172
Types that can be referred to by a path directly. Specifically [enums], [structs], [unions], and [trait object types].
167173

168-
### Dyn-compatible traits
169-
170-
[Traits] that can be used in [trait object types] (`dyn Trait`). Only traits that follow specific [rules][dyn compatibility] are *dyn compatible*.
171-
172-
These were formerly known as *object safe* traits.
173-
174174
### Path
175175

176176
A [*path*] is a sequence of one or more path segments used to refer to an [entity](#entity) in the current scope or other levels of a [namespace](#namespace) hierarchy.

0 commit comments

Comments
 (0)