pub const fn of<T>() -> TypeIdwhere
T: ?Sized,🔬This is a nightly-only experimental API. (
type_info #146922)Expand description
Returns the TypeId of the generic type parameter.
This is identical to TypeId::of but without the static lifetime bound. It will be removed in the future.