pub struct GlobalDeleter;
Expand description
Deleter which uses global allocator via Box
.
It uses type information, provided as type parameter of Deleter::delete
to re-create Box
and
destruct it
Therefore user must guarantee that pointer was created with the same type information
Trait Implementations§
Source§impl Default for GlobalDeleter
impl Default for GlobalDeleter
Source§fn default() -> GlobalDeleter
fn default() -> GlobalDeleter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GlobalDeleter
impl RefUnwindSafe for GlobalDeleter
impl Send for GlobalDeleter
impl Sync for GlobalDeleter
impl Unpin for GlobalDeleter
impl UnwindSafe for GlobalDeleter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more