[][src]Trait pyo3::pyclass_slots::PyClassWeakRef

pub trait PyClassWeakRef {
    pub const IS_DUMMY: bool;

    pub fn new() -> Self;
pub fn __private__(&self) -> PrivateMarker; pub unsafe fn clear_weakrefs(
        &mut self,
        _obj: *mut PyObject,
        _py: Python<'_>
    ) { ... } }

Represents __weakref__ field for #[pyclass].

Associated Constants

pub const IS_DUMMY: bool[src]

Loading content...

Required methods

pub fn new() -> Self[src]

pub fn __private__(&self) -> PrivateMarker[src]

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

Loading content...

Provided methods

pub unsafe fn clear_weakrefs(&mut self, _obj: *mut PyObject, _py: Python<'_>)[src]

Loading content...

Implementors

impl PyClassWeakRef for PyClassDummySlot[src]

impl PyClassWeakRef for PyClassWeakRefSlot[src]

Loading content...