pyo3::impl_::pyclass

Trait PyClass__setitem__SlotFragment

Source
pub trait PyClass__setitem__SlotFragment<T>: Sized {
    // Provided method
    unsafe fn __setitem__(
        self,
        _py: Python<'_>,
        _slf: *mut PyObject,
        _attr: *mut PyObject,
        _value: NonNull<PyObject>,
    ) -> PyResult<()> { ... }
}

Provided Methods§

Source

unsafe fn __setitem__( self, _py: Python<'_>, _slf: *mut PyObject, _attr: *mut PyObject, _value: NonNull<PyObject>, ) -> PyResult<()>

§Safety: _slf and _attr must be valid non-null Python objects

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