UB didn’t matter.
There is no such a thing.
If you really must pretend this matters performance wise, look up MaybeUninit. It still requires unsafe{}, but it's a lot less trouble.
UB didn’t matter.
There is no such a thing.
If you really must pretend this matters performance wise, look up MaybeUninit. It still requires unsafe{}, but it's a lot less trouble.