pub trait Projection {
type Source: ?Sized;
type Target: ?Sized;
// Required methods
fn offset(&self, meta: <Self::Source as Pointee>::Metadata) -> usize;
fn project_metadata(
&self,
meta: <Self::Source as Pointee>::Metadata,
) -> <Self::Target as Pointee>::Metadata;
}Required Associated Types§
Required Methods§
fn offset(&self, meta: <Self::Source as Pointee>::Metadata) -> usize
fn project_metadata( &self, meta: <Self::Source as Pointee>::Metadata, ) -> <Self::Target as Pointee>::Metadata
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".