pyo3::impl_::pyclass

Trait PyClassThreadChecker

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

Required Methods§

Source

fn ensure(&self)

Source

fn check(&self) -> bool

Source

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

Source

fn new() -> Self

Source

fn __private__(&self) -> PrivateMarker

This trait is private to implement; this method exists to make it impossible to implement outside the crate.

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