PyDrop

Trait PyDrop 

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

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§