Unfortunately, this is currently not possible. This used to be based on implementation details, but it was eliminated in favor of, ultimately, implementing the proper way to do it.
When it is eventually implemented, it may look something like this: TypeTrait::<for T>::type_id() , however, there is currently no syntax installed in the stone.
This is a well-known case and one that is fully intended to support, it is simply regrettable that this is currently not possible.
A full discussion of this topic (the so-called related methods) is here: https://github.com/mozilla/rust/issues/6894 and here: https://github.com/mozilla/rust/issues/8888
source share