Commit 1679b715 authored by Andrew Ballance's avatar Andrew Ballance Committed by Danilo Krummrich
Browse files

rust: alloc: add Vec::resize method



Implement the equivalent of the rust std's Vec::resize on the kernel's
Vec type.

Reviewed-by: default avatarBenno Lossin <benno.lossin@proton.me>
Reviewed-by: default avatarTamir Duberstein <tamird@gmail.com>
Link: https://lore.kernel.org/r/20250316111644.154602-3-andrewjballance@gmail.com


Signed-off-by: default avatarAndrew Ballance <andrewjballance@gmail.com>
[ Use checked_sub(), as suggested by Tamir. - Danilo ]
Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
parent 81e1c4da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment