Function std::mem::size_of_valStable
[-] [+]
[src]
pub fn size_of_val<T>(_val: &T) -> usize
Returns the size of the type that _val
points to in bytes.
Examples
fn main() { use std::mem; assert_eq!(4, mem::size_of_val(&5i32)); }use std::mem; assert_eq!(4, mem::size_of_val(&5i32));