pub trait RawDrop {
// Required method
unsafe fn raw_drop(ptr: *mut c_void);
// Provided method
fn raw_drop_cb( ) -> Unsafe<&'static (dyn Fn(*mut c_void) + Sync + Send + 'static)> { ... }
}Expand description
Trait implemented automatically for types that implement Drop and can be used to drop the
type through a raw pointer.
Required Methods§
Provided Methods§
Sourcefn raw_drop_cb() -> Unsafe<&'static (dyn Fn(*mut c_void) + Sync + Send + 'static)>
fn raw_drop_cb() -> Unsafe<&'static (dyn Fn(*mut c_void) + Sync + Send + 'static)>
Get a callback suitable for SchemaData.
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.