Expand description
Free functions to create &[T] and &mut [T].
Re-exportsยง
use crate::ops::Range;๐use crate::array;๐use crate::ptr;๐use crate::ub_checks;๐Experimental
Functionsยง
- from_
mut - Converts a reference to T into a slice of length 1 (without copying).
- from_
raw_ โparts - Forms a slice from a pointer and a length.
- from_
raw_ โparts_ mut - Performs the same functionality as
from_raw_parts, except that a mutable slice is returned. - from_
ref - Converts a reference to T into a slice of length 1 (without copying).
- from_
mut_ โptr_ range Experimental - Forms a mutable slice from a pointer range.
- from_
ptr_ โrange Experimental - Forms a slice from a pointer range.