pub trait Referential<'a>: Sealed {
type Ref: 'a + Deref;
// Required methods
unsafe fn to_ref(self) -> Self::Ref;
fn from_ref(this: Self::Ref) -> Self;
}
Expand description
Allows an Address
to produce an ordinary reference.
Required Associated Types§
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.