pyo3::impl_::pyclass

Trait PyClassThreadChecker

Source
#[doc(hidden)] pub trait PyClassThreadChecker<T>: Sized + Sealed {
    // Required methods
    fn ensure(&self);
    fn check(&self) -> bool;
    fn can_drop(&self, py: Python<'_>) -> bool;
    fn new() -> Self;
}

Required Methods§

Source

fn ensure(&self)

Source

fn check(&self) -> bool

Source

fn can_drop(&self, py: Python<'_>) -> bool

Source

fn new() -> Self

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.

Implementors§

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here