pub const fn type_id_eq(a: TypeId, b: TypeId) -> bool
🔬This is a nightly-only experimental API. (
core_intrinsics
)Expand description
Tests (at compile-time) if two crate::any::TypeId
instances identify the
same type. This is necessary because at const-eval time the actual discriminating
data is opaque and cannot be inspected directly.
The stabilized version of this intrinsic is the PartialEq impl for core::any::TypeId
.