Skip to main content

Aliasing

Trait Aliasing 

Source
pub trait Aliasing: Sealed {
#[doc(hidden)]
const IS_EXCLUSIVE: bool; }
Expand description

The aliasing invariant of a [Ptr][super::Ptr].

All aliasing invariants must permit reading from the bytes of a pointer’s referent which are not covered by UnsafeCells.

Required Associated Constants§

Source

#[doc(hidden)]
const IS_EXCLUSIVE: bool

Is Self Exclusive?

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§