#[repr(transparent)]
pub struct PyClassWeakRefSlot(_);
Expand description

Actual weakref field, which holds the pointer to __weakref__.

#[pyclass(weakref)] automatically adds this.

Trait Implementations

Whether this weakref type is capable of holding weak references.

Initializes a weakref instance.

Clears the weak references to the given object. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.