I came up to a syntax such as
std::mem::size_of::<usize>()
digged a bit more and found it can be implemented via type_name
use std::any::type_name;
//example usage
type_name::<T>()
Trying to figure out if it is possible to write custom functions such as above. I am not sure what is my question here but i am confused about the syntax here. any help or direction is appreciated. thanks!