diff options
| author | David Scholberg <recombinant.vector@gmail.com> | 2026-01-20 22:02:07 -0500 |
|---|---|---|
| committer | David Scholberg <recombinant.vector@gmail.com> | 2026-01-20 22:02:07 -0500 |
| commit | a58dd232dc72f20971707c99dfa6266133f70a20 (patch) | |
| tree | f52aba74aeab46e686bfcc394a4a2e15f654e3cf /docs | |
| parent | 8144aef45d5db22ab2895b41448cd76bf01e05cc (diff) | |
added append function to vec
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/std/vec.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/std/vec.md b/docs/std/vec.md index bda8d5b..3ccdf7e 100644 --- a/docs/std/vec.md +++ b/docs/std/vec.md @@ -54,6 +54,7 @@ struct Vec<T> { | **pop_opt** | `pop_opt(self) -> Option<T>` | Removes the last element and returns `Some(val)`. Returns `None` if empty. Safe usage. | | **insert** | `insert(self, idx: usize, item: T)` | Inserts an element at `idx`. Shifts elements right. Panics if `idx > len`. | | **remove** | `remove(self, idx: usize) -> T` | Removes and returns the element at `idx`. Shifts elements left. Panics if `idx >= len`. | +| **append** | `append(self, other: Vec<T>)` | Appends the given vec to the back of self, growing the capacity of self as needed. | | **clear** | `clear(self)` | Removes all values. Has no effect on allocated capacity. | | **reverse** | `reverse(self)` | Reverses the order of elements in place. | |
