Skip to main content

type_id_points_mutably

Function type_id_points_mutably 

Source
pub const fn type_id_points_mutably(_id: TypeId) -> bool
🔬This is a nightly-only experimental API. (core_intrinsics)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Expand description

Given a TypeId that represents a pointer returns whether that pointer is mutable. When called on anything else this returns false.

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