# pyo3::pyclass_slots::PyClassWeakRefSlot - Rust
Actual weakref field, which holds the pointer to `__weakref__`.
Keywords: rust, rustlang, rust-lang, PyClassWeakRefSlot

# Struct pyo3::pyclass_slots::PyClassWeakRefSlot [−] [src]

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

Actual weakref field, which holds the pointer to `__weakref__`.

`#[pyclass(weakref)]` automatically adds this.

## Trait Implementations

### `impl PyClassWeakRef for PyClassWeakRefSlot` [src]

#### `const IS_DUMMY: bool` [src]

#### `fn new() -> Self` [src]

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

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

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

## Auto Trait Implementations

### `impl RefUnwindSafe for PyClassWeakRefSlot`

### `impl !Send for PyClassWeakRefSlot`

### `impl !Sync for PyClassWeakRefSlot`

### `impl Unpin for PyClassWeakRefSlot`

### `impl UnwindSafe for PyClassWeakRefSlot`

## Blanket Implementations

### `impl<T> Any for T where
T: 'static + ?Sized,` [src]

#### `pub fn type_id(&self) -> TypeId` [src]

Gets the `TypeId` of `self`. Read more

### `impl<T> Borrow<T> for T where
T: ?Sized,` [src]

#### `pub fn borrow(&self) -> &T` [src]

Immutably borrows from an owned value. Read more

### `impl<T> BorrowMut<T> for T where
T: ?Sized,` [src]

#### `pub fn borrow_mut(&mut self) -> &mut T` [src]

Mutably borrows from an owned value. Read more

### `impl<T> From<T> for T` [src]

#### `pub fn from(t: T) -> T` [src]

Performs the conversion.

### `impl<T, U> Into<U> for T where
U: From<T>,` [src]

#### `pub fn into(self) -> U` [src]

Performs the conversion.

### `impl<T, U> TryFrom<U> for T where
U: Into<T>,` [src]

#### `type Error = Infallible`

The type returned in the event of a conversion error.

#### `pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>` [src]

Performs the conversion.

### `impl<T, U> TryInto<U> for T where
U: TryFrom<T>,` [src]

#### `type Error = <U as TryFrom<T>>::Error`

The type returned in the event of a conversion error.

#### `pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>` [src]

Performs the conversion.