pub(crate) const fn size_of_val<T>(_: &T) -> usize
Returns the size of the pointed-to value in bytes.
This is a const fn in the standard library starting in Rust 1.85. When MSRV is at least that, this can be removed.
const fn