Commit 81e1c4da authored by Andrew Ballance's avatar Andrew Ballance Committed by Danilo Krummrich
Browse files

rust: alloc: add Vec::truncate method

Implement the equivalent to the std's Vec::truncate on the kernel's Vec
type.

Link: https://lore.kernel.org/r/20250316111644.154602-2-andrewjballance@gmail.com


Signed-off-by: default avatarAndrew Ballance <andrewjballance@gmail.com>
[ Rewrote safety comment of set_len(). - Danilo ]
Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
parent fb1bf106
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment