pub trait DerefPlusSelf {
type Target: ?Sized;
// Required method
fn deref(&self) -> &Self::Target;
}Expand description
The trait automatically implements for D: Deref with D::Target. User may add implementation of DerefPlusSelf<Target = Type> for some Type via enable_deref_for_self, where Type can be str, [T], or a local type (i.e. not an upstream type).
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".