about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorSamuel Wilson <samuel.wilson@fluxfederation.com>2018-04-07 00:01:51 +1200
committerWho? Me?! <mark-i-m@users.noreply.github.com>2018-04-14 20:29:42 -0500
commit5ddeec28e3b86e7b14aa52d2b0c950aaf67d7581 (patch)
tree96d755e19b151717cffc0465c582c33d60f73af2 /src/doc
parent9af854341c82c07e94848171629dcad5a409f81d (diff)
downloadrust-5ddeec28e3b86e7b14aa52d2b0c950aaf67d7581.tar.gz
rust-5ddeec28e3b86e7b14aa52d2b0c950aaf67d7581.zip
Add definition of a fat pointer
Definition referenced from Programming Rust by Jim Blandy & Jason
Orendorff, published by O'Reilly. Page 214: References to Slices
and Trait Objects.
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustc-dev-guide/src/appendix-glossary.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/appendix-glossary.md b/src/doc/rustc-dev-guide/src/appendix-glossary.md
index 1d82686ba92..23de529f2fa 100644
--- a/src/doc/rustc-dev-guide/src/appendix-glossary.md
+++ b/src/doc/rustc-dev-guide/src/appendix-glossary.md
@@ -16,6 +16,7 @@ cx                      |  we tend to use "cx" as an abbrevation for context. Se
 DAG                     |  a directed acyclic graph is used during compilation to keep track of dependencies between queries. ([see more](incremental-compilation.html))
 data-flow analysis      |  a static analysis that figures out what properties are true at each point in the control-flow of a program; see [the background chapter for more](./appendix-background.html#dataflow)  
 DefId                   |  an index identifying a definition (see `librustc/hir/def_id.rs`). Uniquely identifies a `DefPath`.
+Fat pointer             |  a two word value carrying the address of some value, along with some further information necessary to put the value to use. For example: a reference to a slice is a fat pointer, carrying the starting address of the slice and its length.
 free variable           |  a "free variable" is one that is not bound within an expression or term; see [the background chapter for more](./appendix-background.html#free-vs-bound)
 'gcx                    |  the lifetime of the global arena ([see more](ty.html))
 generics                |  the set of generic type parameters defined on a type or item