pub const unsafe fn from_raw_parts<'a, T>(
data: *const T,
len: usize,
) -> &'a UniqueEntityEquivalentSlice<T>where
T: EntityEquivalent,
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.