Trait smart_ptr::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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Deleter for ()

source§

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

Implementors§