summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator_test.rs
diff options
context:
space:
mode:
authorAndrew Ballance <andrewjballance@gmail.com>2025-03-16 06:16:43 -0500
committerDanilo Krummrich <dakr@kernel.org>2025-04-07 14:41:10 +0200
commit1679b7159379d11100e4ab7d1de23c8cd7765aa1 (patch)
treef423ddbae8a3601429ecbe0b7c906ad8d18c751c /rust/kernel/alloc/allocator_test.rs
parent81e1c4dab5d0c508907722f18b028102454d52e6 (diff)
rust: alloc: add Vec::resize method
Implement the equivalent of the rust std's Vec::resize on the kernel's Vec type. Reviewed-by: Benno Lossin <benno.lossin@proton.me> Reviewed-by: Tamir Duberstein <tamird@gmail.com> Link: https://lore.kernel.org/r/20250316111644.154602-3-andrewjballance@gmail.com Signed-off-by: Andrew Ballance <andrewjballance@gmail.com> [ Use checked_sub(), as suggested by Tamir. - Danilo ] Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/allocator_test.rs')
0 files changed, 0 insertions, 0 deletions