diff options
| author | Wedson Almeida Filho <[email protected]> | 2024-03-28 01:35:55 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2024-04-16 20:03:14 +0000 |
| commit | 03989773a94490383b062912feb0c4d175f20845 (patch) | |
| tree | 14df87b69f4c7820ebe8802761496594feae13f0 /scripts/generate_rust_analyzer.py | |
| parent | rust: kernel: move `allocator` module under `alloc` (diff) | |
| download | kernel-03989773a94490383b062912feb0c4d175f20845.tar.gz kernel-03989773a94490383b062912feb0c4d175f20845.zip | |
rust: alloc: introduce the `VecExt` trait
Make `try_with_capacity`, `try_push`, and `try_extend_from_slice`
methods available in `Vec` even though it doesn't implement them. It is
implemented with `try_reserve` and `push_within_capacity`.
This is in preparation for switching to the upstream `alloc` crate.
Reviewed-by: Benno Lossin <[email protected]>
Suggested-by: Gary Guo <[email protected]>
Signed-off-by: Wedson Almeida Filho <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions
