pub const fn layout_of<B: ?Sized + Buf>(buf: &B) -> Layout
Computes the layout of buf.
buf
This function is const, unlike Layout::for_value().
const
Layout::for_value()