[][src]Trait cpp_core::CppDeletable

pub trait CppDeletable: Sized {
    unsafe fn delete(&self);

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(&self)

Calls C++'s delete x on self.


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.

Loading content...


Loading content...