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.unsafe precondition(s) violated: slice::get_unchecked requires that the range is within the slice This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.a formatting trait implementation returned an error when the underlying stream did notunsafe precondition(s) violated: ptr::write_bytes requires that the destination pointer is aligned and non-null This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.is_aligned_to: align is not a power-of-twounsafe precondition(s) violated: ptr::copy_nonoverlapping requires that both pointer arguments are aligned and non-null and the specified memory ranges do not overlap This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.is_nonoverlapping: `size_of::() * count` overflows a usize