DropLeftoversOf

Trait DropLeftoversOf 

Source
pub trait DropLeftoversOf<X: ?Sized, Idx = DerefOperation>: Sized {
    // Provided method
    unsafe fn drop_leftovers(
        _self: ManuallyDrop<GenericPointer<X, Self>>,
        idx: Idx,
    ) { ... }
}
Expand description

Its a separate trait rather than a part of GenericDeref to allow GenericDeref to be blanket implemented over the marker type

Provided Methods§

Source

unsafe fn drop_leftovers(_self: ManuallyDrop<GenericPointer<X, Self>>, idx: Idx)

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.

Implementors§

Source§

impl<T> DropLeftoversOf<Box<T>> for OwningMarker<'_, Box<T>>

Source§

impl<T, I> DropLeftoversOf<T, I> for Marker<&()>

Source§

impl<T, I> DropLeftoversOf<T, I> for Marker<&mut ()>