mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-03-25 15:38:01 +02:00
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.
2.9 KiB
2.9 KiB
Glossary
The following is a glossary which aims to give a short definition of many Rust terms. For translations, this also serves to connect the term back to the English original.
- allocate:
Dynamic memory allocation on the heap. - argument:\
- Bare-metal Rust:
Low-level Rust development, often deployed to a system without an operating system. See Bare-metal Rust. - block:
See Blocks and scope. - borrow:
See Borrowing. - borrow checker:
The part of the Rust compiler which checks that all borrows are valid. - brace:
{
and}
. Also called curly brace, they delimit blocks. - build:\
- call:\
- channel:
Used to safely pass messages between threads. - Comprehensive Rust 🦀:
The courses here are jointly called Comprehensive Rust 🦀. - concurrency:\
- Concurrency in Rust:
See Concurrency in Rust. - constant:\
- control flow:\
- crash:\
- enumeration:\
- error:\
- error handling:\
- exercise:\
- function:\
- garbage collector:\
- generics:\
- immutable:\
- integration test:\
- keyword:\
- library:\
- macro:
Rust macros can be recognized by a!
in the name. Macros are used when normal functions are not enough. A typical example isformat!
, which takes a variable number of arguments, which isn't supported by Rust functions. main
function:
Rust programs start executing with themain
function.- match:\
- memory leak:\
- method:\
- module:\
- move:\
- mutable:\
- ownership:\
- panic:\
- parameter:\
- pattern:\
- payload:\
- program:\
- programming language:\
- receiver:\
- reference counting:\
- return:\
- Rust:\
- Rust Fundamentals:
Days 1 to 3 of this course. - Rust in Android:
See Rust in Android. - safe:\
- scope:\
- standard library:\
- static:\
- string:
A data type storing textual data. SeeString
vsstr
for more. - struct:\
- test:\
- thread:\
- thread safety:\
- trait:\
- type:\
- type inference:\
- undefined behavior:\
- union:\
- unit test:
Rust comes with built-in support for running small unit tests and larger integration tests. See Unit Tests. - unsafe:
The subset of Rust which allows you to trigger undefined behavior. See Unsafe Rust. - variable:
A memory location storing data. Variables are valid in a scope.