ListSetLenFn

Type Alias ListSetLenFn 

Source
pub type ListSetLenFn = unsafe fn(PtrMut, usize);
Expand description

Set the length of a list (for direct-fill operations).

§Safety

  • The list parameter 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_len must be properly initialized.
  • For types that are not Copy, the caller must ensure no double-drops occur.