blob: 769627f22da28ff5eecb3140a67b566af0e4641b [file] [log] [blame] [view] [edit]
Vectors are re-sizable arrays, like slices their size is not known at compile
time, but they can grow or shrink at anytime. A vector is represented using
3 words: a pointer to the data, its length and its capacity. The capacity
indicates how much memory is reserved for the vector, the vector can grow as
long as the length is smaller than the capacity, when this threshold needs to
be surpassed, the vector gets reallocated with a bigger capacity.
{vec.play}
More `Vec` methods can be found under the
[std::vec](http://doc.rust-lang.org/std/vec/) module