A destructor is present on this object, but not explicitly documented in the source.
A postblit is present on this object, but not explicitly documented in the source.
The current memory capacity of the vector
Clears the vector, resulting in an empty one
If the vector is empty
Frees the memory and returns to .init
Assigns from a range.
Returns a new vector after appending to the given vector.
Access the ith element. Can throw RangeError.
Append to the vector
Append to the vector from a range
Returns a slice. @system because the pointer in the slice might dangle.
Returns a slice. @system because the pointer in the slice might dangle.
Assign all elements to the given value
Assign all elements in the given range to the given value
Assign all elements using the given operation and the given value
Assign all elements in the given range using the given operation and the given value
Pops the last element off
Pops the front element off
Return a forward range of the vector contents. Negative end values work like in Python.
Reserve memory to avoid allocations when appending
Shrink to fit the current length. Returns if shrunk.
Shrink to fit the new length given. Returns if shrunk. Cannot be made @safe due to reallocation causing pointers to dangle.
Return a null-terminated C string @system since appending is not @safe.
A dynamic array with deterministic memory usage akin to C++'s std::vector or Rust's std::vec::Vec