Commit feec59e
authored
Rollup merge of #152003 - 9SonSteroids:trait_info_of, r=oli-obk
Reflection TypeId::trait_info_of
*[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust/pull/152003)*
This is for rust-lang/rust#146922.
As rust-lang/rust#151236 was requested to be remade by someone I implemented the functionality as `TypeId::trait_info_of` which additionally allows getting the vtable pointer to build `dyn` Objects in recursive reflection.
It allows checking if a TypeId implements a trait. Since this is my first PR feel free to tell me if there are any formal issues.0 file changed
0 commit comments