Skip to main content

Destruct

Trait Destruct 

Source
pub trait Destruct: PointeeSized { }
🔬This is a nightly-only experimental API. (const_destruct #133214)
Expand description

A marker for types that can be dropped.

This should be used for [const] bounds, as non-const bounds will always hold for every type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§