DropMoveTypes

Trait DropMoveTypes 

Source
pub trait DropMoveTypes: Sized + Into<Self::Outer>
where Self::Outer: Into<Self>,
{ type Outer; }
Expand description

Tracks the relationship between an inner struct and outer struct generated by drop_move_wrap!.

It is implemented for the inner structure, and Self::Outer is set to be the outer structure. This is separated from DropMove so that it can be implemented automatically by the macro.

Required Associated Types§

Source

type Outer

The corresponding outer structure.

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§