Function size_of_val
unsafe const fn size_of_val<T: ?Sized>(ptr: *const T) -> usize
The size of the referenced value in bytes.
The stabilized version of this intrinsic is core::mem::size_of_val.
Safety
See crate::mem::size_of_val_raw for safety conditions.