pub trait DropIn {
// Required method
unsafe fn drop_in<A: Allocator>(&mut self, alloc: &A);
}Expand description
Tag a structure as allocated; that is it needs to be dropped with the context of an allocator. This is equivalent to std::ops::Drop.
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.