Function bitflags::__core::mem::size_of [] [src]

pub fn size_of<T>() -> usize
1.0.0

Returns the size of a type in bytes.

Examples

use std::mem;

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