Creates a slice from a pointer and a length.
unsafe fn from_ptr<T>(ptr: *const T, len: usize) -> &'a mut [T]
| Name | Description |
|---|---|
| ptr | The pointer to the first element of the slice. |
| len | The number of elements in the slice. |
Returns a slice made up of the arguments.
The arguments must be valid or the behavior is undefined.