Trait cpython::PyDrop

source ·
pub trait PyDrop: Sized {
    // Required method
    fn release_ref(self, py: Python<'_>);
}

Required Methods§

source

fn release_ref(self, py: Python<'_>)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> PyDrop for Option<T>
where T: PyDrop,

source§

fn release_ref(self, py: Python<'_>)

Implementors§