[−][src]Trait cpp_core::CppDeletable
Objects that can be deleted using C++'s delete
operator.
This trait is automatically implemented for class types by ritual
.
Required methods
unsafe fn delete(&mut self)
Calls C++'s delete x
on self
.
Safety
The caller must make sure self
contains a valid pointer. This function
may invoke arbitrary foreign code, so no safety guarantees can be made.
Note that deleting an object multiple times is undefined behavior.