pub unsafe trait Project<Src: ?Sized, Dst: ?Sized> {
// Required method
fn project(src: PtrInner<'_, Src>) -> *mut Dst;
}Expand description
A pointer cast or projection.
§Safety
The implementation of project must satisfy its safety post-condition.
Required Methods§
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.