Lines Matching defs:from_raw_parts
302 /// `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 {
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(ptr, len, cap)
2150 let range_slice = slice::from_raw_parts(self.as_ptr().add(start), end - start);
2855 unsafe { slice::from_raw_parts(self.as_ptr(), self.len) }