We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
AdtDef
1 parent 87b0c90 commit 65852a4Copy full SHA for 65852a4
src/librustc/ty/mod.rs
@@ -1938,7 +1938,11 @@ pub struct FieldDef {
1938
pub vis: Visibility,
1939
}
1940
1941
-/// The definition of an abstract data type -- a struct or enum.
+/// The definition of an [*algebraic data type (ADT)*][adt].
1942
+/// These include `struct`s (products), `enum` (sums).
1943
+/// A `union` is also represented here but is not an ADT.
1944
+///
1945
+/// [adt]: https://en.wikipedia.org/wiki/Algebraic_data_type
1946
///
1947
/// These are all interned (by `intern_adt_def`) into the `adt_defs` table.
1948
pub struct AdtDef {
0 commit comments