pub const unsafe fn from_raw_parts<'a, T: EntityEquivalent>(
data: *const T,
len: usize,
) -> &'a UniqueEntityEquivalentSlice<T>
Expand description
Forms a slice from a pointer and a length.
Equivalent to slice::from_raw_parts
.
ยงSafety
slice::from_raw_parts
must be safe to call with data
and len
.
Additionally, all elements in the resulting slice must be unique.