Function core::mem::size_of
[−]
[src]
pub fn size_of<T>() -> usize1.0.0
Returns the size of a type in bytes.
Examples
fn main() { use std::mem; assert_eq!(4, mem::size_of::<i32>()); }use std::mem; assert_eq!(4, mem::size_of::<i32>());