core_dev/
util.rs

1pub fn sizeof<T>(_object: &T) -> usize {
2    std::mem::size_of_val(_object)
3}