tutorial: pointer -> box
This commit is contained in:
parent
4d8113725d
commit
f54b767013
@ -1233,8 +1233,8 @@ avoiding expensive copies.
|
||||
|
||||
Rust has three "realms" in which objects can be allocated: the stack,
|
||||
the local heap, and the exchange heap. These realms have corresponding
|
||||
pointer types: the borrowed pointer (`&T`), the shared pointer (`@T`),
|
||||
and the unique pointer (`~T`). These three sigils will appear
|
||||
pointer types: the borrowed pointer (`&T`), the shared box (`@T`),
|
||||
and the unique box (`~T`). These three sigils will appear
|
||||
repeatedly as we explore the language. Learning the appropriate role
|
||||
of each is key to using Rust effectively.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user