diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-05 06:40:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-05 06:40:29 +0100 |
| commit | 22827fd5b1ca5f4a588dab2ae50c3b7a138d89b0 (patch) | |
| tree | 554fe466f63f6a535700f907bcbf3024931eb612 /compiler/rustc_pattern_analysis/src | |
| parent | c2f6c0b8062c3903e1ade11179f5a0c4256d2e00 (diff) | |
| parent | 74151cbbf04477b646c7fcfd1db60f9c79c06081 (diff) | |
| download | rust-22827fd5b1ca5f4a588dab2ae50c3b7a138d89b0.tar.gz rust-22827fd5b1ca5f4a588dab2ae50c3b7a138d89b0.zip | |
Rollup merge of #121262 - 20jasper:add-vector-time-complexity, r=cuviper
Add vector time complexity Added time complexity for `Vec` methods `push`, `push_within_capacity`, `pop`, and `insert`. <details> <summary> Reference images </summary>     </details> I followed a convention to use `#Time complexity` that I found in [the `BinaryHeap` documentation](https://doc.rust-lang.org/std/collections/struct.BinaryHeap.html#time-complexity-1). Looking through the rest of standard library collections, there is not a consistent way to handle this. [`Vec::swap_remove`](https://doc.rust-lang.org/std/vec/struct.Vec.html#method.swap_remove) does not have a dedicated section for time complexity but does list it. [`VecDeque::rotate_left`](https://doc.rust-lang.org/std/collections/struct.VecDeque.html#complexity) uses a `#complexity` heading.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
