May 2019
Intermediate to advanced
698 pages
17h 21m
English
The dynamic array is a very flexible way of using array-like structures as a list—and it's surprisingly easy to implement and use. In fact, adding other features (prepend, insert at a specified position, and so on) is only a matter of a few lines of code.
For Rust, the difference from the other list types is the clearly defined hierarchical ownership: the list struct owns the internal structure, which in turn owns the data in its elements. There are no links among the elements that could create ambiguity in who owns what, making the dynamic array a great example for how productive Rust code can be.
Read now
Unlock full access