pyo3::pycell::impl_

Trait GetBorrowChecker

Source
pub trait GetBorrowChecker<T: PyClassImpl> {
    // Required method
    fn borrow_checker(
        class_object: &PyClassObject<T>,
    ) -> &<T::PyClassMutability as PyClassMutability>::Checker;
}

Required Methods§

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§

Source§

impl<T: PyClassImpl<PyClassMutability = Self>> GetBorrowChecker<T> for ImmutableClass

Source§

impl<T: PyClassImpl<PyClassMutability = Self>> GetBorrowChecker<T> for MutableClass

Source§

impl<T: PyClassImpl<PyClassMutability = Self>, M: PyClassMutability> GetBorrowChecker<T> for ExtendsMutableAncestor<M>

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