Files
linux/rust/kernel/alloc
Hui Zhu 7cedf7345c rust: alloc: kvec: add doc example for as_slice method
Add a practical usage example to the documentation of KVec::as_slice()
showing how to:
Create a new KVec.
Push elements into it.
Convert to a slice via as_slice().

Co-developed-by: Geliang Tang <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: Hui Zhu <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Reviewed-by: Kunwu Chan <[email protected]>
Reviewed-by: David Gow <[email protected]>
Link: https://lore.kernel.org/r/4e7f396f38ed8a780f863384bfc3d7de135ef3ea.1753929369.git.zhuhui@kylinos.cn
Signed-off-by: Danilo Krummrich <[email protected]>
2025-08-13 18:52:31 +02:00
..