[src]

Function std::mem::nonzero_size_of

pub fn nonzero_size_of<T>() -> uint

Returns the size of a type in bytes, or 1 if the actual size is zero.

Useful for building structures containing variable-length arrays.