Home
last modified time | relevance | path

Searched refs:from_raw_parts (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-6.6/rust/kernel/
H A Dstr.rs103 let bytes = unsafe { core::slice::from_raw_parts(ptr as _, len as _) }; in from_char_ptr()
/kernel/linux/linux-6.6/rust/alloc/vec/
H A Dmod.rs302 /// `from_raw_parts` to recover the `Vec` and then dropping it.
576 /// [`slice::from_raw_parts`] instead.
613 /// let rebuilt = Vec::from_raw_parts(p, len, cap);
634 /// Vec::from_raw_parts(mem, 1, 16)
643 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts() functions
910 /// order as the arguments to [`from_raw_parts`].
915 /// into a `Vec` with the [`from_raw_parts`] function, allowing
918 /// [`from_raw_parts`]: Vec::from_raw_parts
933 /// Vec::from_raw_parts(pt
[all...]
/kernel/linux/linux-6.6/rust/alloc/
H A Dslice.rs55 pub use core::slice::{from_raw_parts, from_raw_parts_mut};

Completed in 5 milliseconds