Skip to main content

type_id_points_to

Function type_id_points_to 

Source
pub const fn type_id_points_to(_id: TypeId) -> Option<TypeId>
🔬This is a nightly-only experimental API. (core_intrinsics)
Expand description

Given a TypeId that represents a pointer this returns the TypeId which that pointer points to. When called on anything else this returns None.

The more user-friendly version of this intrinsic is core::any::TypeId::points_to.