pub type ListSetLenFn = unsafe fn(PtrMut, usize);Expand description
Set the length of a list (for direct-fill operations).
§Safety
- The
listparameter must point to aligned, initialized memory of the correct type. - The new length must not exceed the list’s capacity.
- All elements at indices
0..new_lenmust be properly initialized. - For types that are not
Copy, the caller must ensure no double-drops occur.