at the pointer is non-null This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.unsafe precondition(s) violated: Vec::set_len requires that new_len <= capacity() This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.`new_layout.size()` must be greater than or equal to `old_layout.size()`unsafe precondition(s) violated: slice::get_unchecked requires that the index is within the slice This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.unsafe precondition(s) violated: slice::get_unchecked_mut requires that the index is within the slice This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.