Function std::intrinsics::size_ofUnstable [-] [+] [src]

pub unsafe fn size_of<T>() -> usize

The size of a type in bytes.

This is the exact number of bytes in memory taken up by a value of the given type. In other words, a memset of this size would exactly overwrite a value. When laid out in vectors and structures there may be additional padding between elements.