span_of creates a reference to an uninitialized field for size_of_val.
We should switch to a different implementation that works with raw pointers. It doesn't even have to support unsized types (we just need the type inference), so we could use
fn size_of_pointee<T>(_ptr: *const T) -> T {
mem::size_of::<T>()
}
span_of
creates a reference to an uninitialized field forsize_of_val
.We should switch to a different implementation that works with raw pointers. It doesn't even have to support unsized types (we just need the type inference), so we could use