Struct smart_ptr::GlobalDeleter
source · 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 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