#[doc(hidden)]pub unsafe trait HasTag {
type Tag: Immutable;
type ProjectToTag: Project<Self, Self::Tag>;
// Required method
fn only_derive_is_allowed_to_implement_this_trait()
where Self: Sized;
}Expand description
§Safety
Self::ProjectToTag must satisfy its safety invariant.
Required Associated Types§
Sourcetype ProjectToTag: Project<Self, Self::Tag>
type ProjectToTag: Project<Self, Self::Tag>
A pointer projection from Self to its tag.
§Safety
It must be the case that, for all slf: Ptr<'_, Self, I>, it is sound
to project from slf to Ptr<'_, Self::Tag, I> using this projection.
Required Methods§
fn only_derive_is_allowed_to_implement_this_trait()where
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.