From ef4965c56996efdc91c9d5bd5fe4ffde5e560602 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Thu, 24 Sep 2026 22:33:01 -0700 Subject: [PATCH] Glossary: put "Dyn-compatible traits" in alphabetical order Order was likely left over from being called "object safe traits" --- src/glossary.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/glossary.md b/src/glossary.md index e977a6949a..39fdfaeeea 100644 --- a/src/glossary.md +++ b/src/glossary.md @@ -49,6 +49,12 @@ A crate is the unit of compilation and linking. There are different [types of cr 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]. +### Dyn-compatible traits + +[Traits] that can be used in [trait object types] (`dyn Trait`). Only traits that follow specific [rules][dyn compatibility] are *dyn compatible*. + +These were formerly known as *object safe* traits. + ### Dynamically sized type 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 Types that can be referred to by a path directly. Specifically [enums], [structs], [unions], and [trait object types]. -### Dyn-compatible traits - -[Traits] that can be used in [trait object types] (`dyn Trait`). Only traits that follow specific [rules][dyn compatibility] are *dyn compatible*. - -These were formerly known as *object safe* traits. - ### Path 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.