Skip to main content

of

Function of 

Source
pub const fn of<T>() -> TypeId
where 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.