You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-20 16:05:38 +02:00
Update glossary.md (#1455)
Expand a few random entries of the glossary. This is just to remind people that the glossary exists and that we should work on making it complete. Part of #1466.
This commit is contained in:
@ -65,7 +65,12 @@ Also, please keep the hard line breaks to ensure a nice formatting.
|
|||||||
- keyword:\
|
- keyword:\
|
||||||
- library:\
|
- library:\
|
||||||
- macro:\
|
- macro:\
|
||||||
- main function:\
|
Rust macros can be recognized by a `!` in the name. Macros are used
|
||||||
|
when normal functions are not enough. A typical example is `format!`,
|
||||||
|
which takes a variable number of arguments, which isn't supported by
|
||||||
|
Rust functions.
|
||||||
|
- `main` function:\
|
||||||
|
Rust programs start executing with the `main` function.
|
||||||
- match:\
|
- match:\
|
||||||
- memory leak:\
|
- memory leak:\
|
||||||
- method:\
|
- method:\
|
||||||
@ -92,6 +97,8 @@ Also, please keep the hard line breaks to ensure a nice formatting.
|
|||||||
- standard library:\
|
- standard library:\
|
||||||
- static:\
|
- static:\
|
||||||
- string:\
|
- string:\
|
||||||
|
A data type storing textual data. See
|
||||||
|
[`String` vs `str`](basic-syntax/string-slices.html) for more.
|
||||||
- struct:\
|
- struct:\
|
||||||
- test:\
|
- test:\
|
||||||
- thread:\
|
- thread:\
|
||||||
@ -102,5 +109,10 @@ Also, please keep the hard line breaks to ensure a nice formatting.
|
|||||||
- undefined behavior:\
|
- undefined behavior:\
|
||||||
- union:\
|
- union:\
|
||||||
- unit test:\
|
- unit test:\
|
||||||
|
Rust comes with built-in support for running small unit tests and larger
|
||||||
|
integration tests. See [Unit Tests](testing/unit-tests.html).
|
||||||
- unsafe:\
|
- unsafe:\
|
||||||
|
The subset of Rust which allows you to trigger _undefined behavior_.
|
||||||
|
See [Unsafe Rust](unsafe.html).
|
||||||
- variable:\
|
- variable:\
|
||||||
|
A memory location storing data. Variables are valid in a _scope_.
|
||||||
|
Reference in New Issue
Block a user