pub trait Destructor: PyPayload {
    const __OWN_METHOD_DEFS: &'static [PyMethodDef] = _;

    // Required method
    fn del(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<()>;

    // Provided methods
    fn slot_del(zelf: &PyObject, vm: &VirtualMachine) -> PyResult<()> { ... }
    fn __del__(zelf: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> { ... }
    fn __extend_py_class(ctx: &Context, class: &'static Py<PyType>) { ... }
    fn __extend_slots(slots: &mut PyTypeSlots) { ... }
}

Provided Associated Constants§

source

const __OWN_METHOD_DEFS: &'static [PyMethodDef] = _

Required Methods§

source

fn del(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<()>

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§