Function size_of_val

Source
pub(crate) const fn size_of_val<T>(_: &T) -> usize
Expand description

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.