Trait Deleter

Source
pub trait Deleter {
    // Required method
    unsafe fn delete<T: ?Sized>(ptr: *mut T);
}
Expand description

Describes how to de-allocate pointer.

Required Methods§

Source

unsafe fn delete<T: ?Sized>(ptr: *mut T)

This function is called on Drop

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.

Implementations on Foreign Types§

Source§

impl Deleter for ()

Source§

unsafe fn delete<T: ?Sized>(_: *mut T)

Implementors§