Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ h1#glossary ~ ul > li:first-line {
- argument:\
Information that is passed into a [function](control-flow-basics/functions.md)
or method.
- array:\
A fixed-size collection of elements of the same type, stored contiguously in
memory. See [Arrays](tuples-and-arrays/arrays.md).
- associated type:\
A type associated with a specific trait. Useful for defining the relationship
between types.
Expand Down Expand Up @@ -157,6 +160,10 @@ h1#glossary ~ ul > li:first-line {
- receiver:\
The first parameter in a Rust [method](methods-and-traits/methods.md) that
represents the instance on which the method is called.
- reference:\
A non-owning pointer to a value that borrows it without transferring
ownership. References can be [shared (immutable)](references/shared.md) or
[exclusive (mutable)](references/exclusive.md).
- reference counting:\
A memory management technique in which the number of references to an object
is tracked, and the object is deallocated when the count reaches zero. See
Expand All @@ -176,6 +183,10 @@ h1#glossary ~ ul > li:first-line {
- safe:\
Refers to code that adheres to Rust's ownership and borrowing rules,
preventing memory-related errors. See [Unsafe Rust](unsafe-rust.md).
- slice:\
A dynamically-sized view into a contiguous sequence, such as an array or
vector. Unlike arrays, slices have a size determined at runtime. See
[Slices](references/slices.md).
- scope:\
The region of a program where a variable is valid and can be used. See
[Blocks and Scopes](control-flow-basics/blocks-and-scopes.md).
Expand Down
Loading