You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-17 22:57:35 +02:00
Glossary: add tuple, unit type, improve definition of enumeration (#1686)
Co-authored-by: Dustin J. Mitchell <dustin@v.igoro.us>
This commit is contained in:
@ -63,7 +63,8 @@ Also, please keep the hard line breaks to ensure a nice formatting.
|
|||||||
- crash:\
|
- crash:\
|
||||||
An unexpected and unhandled failure or termination of a program.
|
An unexpected and unhandled failure or termination of a program.
|
||||||
- enumeration:\
|
- enumeration:\
|
||||||
A data type that consists of named constant values.
|
A data type that holds one of several named constants, possibly with an
|
||||||
|
associated tuple or struct.
|
||||||
- error:\
|
- error:\
|
||||||
An unexpected condition or result that deviates from the expected behavior.
|
An unexpected condition or result that deviates from the expected behavior.
|
||||||
- error handling:\
|
- error handling:\
|
||||||
@ -176,6 +177,9 @@ Also, please keep the hard line breaks to ensure a nice formatting.
|
|||||||
- trait bound:\
|
- trait bound:\
|
||||||
An abstraction where you can require types to implement some traits of your
|
An abstraction where you can require types to implement some traits of your
|
||||||
interest.
|
interest.
|
||||||
|
- tuple:\
|
||||||
|
A composite data type that contains variables of different types. Tuple fields
|
||||||
|
have no names, and are accessed by their ordinal numbers.
|
||||||
- type:\
|
- type:\
|
||||||
A classification that specifies which operations can be performed on values of
|
A classification that specifies which operations can be performed on values of
|
||||||
a particular kind in Rust.
|
a particular kind in Rust.
|
||||||
@ -190,6 +194,8 @@ Also, please keep the hard line breaks to ensure a nice formatting.
|
|||||||
- unit test:\
|
- unit test:\
|
||||||
Rust comes with built-in support for running small unit tests and larger
|
Rust comes with built-in support for running small unit tests and larger
|
||||||
integration tests. See [Unit Tests](testing/unit-tests.html).
|
integration tests. See [Unit Tests](testing/unit-tests.html).
|
||||||
|
- unit type:\
|
||||||
|
Type that holds no data, written as a tuple with no members.
|
||||||
- unsafe:\
|
- unsafe:\
|
||||||
The subset of Rust which allows you to trigger _undefined behavior_. See
|
The subset of Rust which allows you to trigger _undefined behavior_. See
|
||||||
[Unsafe Rust](unsafe.html).
|
[Unsafe Rust](unsafe.html).
|
||||||
|
Reference in New Issue
Block a user