Function redox::mem::size_of [] [src]

pub fn size_of<T>() -> usize

Returns the size of a type in bytes.

Examples

use std::mem;

assert_eq!(4, mem::size_of::<i32>());