function size_of_val
@intrinsic(size_of_val)
fn size_of_val<unsized T>(ptr: &T) -> usize { .. }Expand
Gets the size of the value of type T at the pointer. This takes into account number of elements for &[_] or the size of the underlying type for &dyn _.