Skip to main content

type_stride

Function type_stride 

Source
pub unsafe fn type_stride(metadata: *const c_void) -> usize
Expand description

Stride in bytes of a type โ€” the spacing between consecutive array elements, which is not the same as its size once alignment padding is involved.

ยงSafety

As type_size.