pub trait MemUtils { // Required methods fn type_name(&self) -> &'static str; fn mem_size(&self) -> usize; fn view(&self); }
Reflection helpers: type name and memory size.
Returns the type name of self.
self
Returns memory size in bytes of the type.
Prints type and memory size to stdout.