Struct pyo3::pycell::PyRefMut

source ·
pub struct PyRefMut<'p, T: PyClass<Frozen = False>> { /* private fields */ }
Expand description

A wrapper type for a mutably borrowed value from aPyCell<T>.

See the module-level documentation for more information.

Implementations§

Returns a Python token that is bound to the lifetime of the PyRefMut.

Gets a PyRef<T::BaseType>.

See PyRef::into_super for more.

Trait Implementations§

Converts this type into a mutable reference of the (usually inferred) input type.
Returns the underlying FFI pointer as a borrowed pointer.
Converts this type into a shared reference of the (usually inferred) input type.
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Executes the destructor for this type. Read more
Converts to this type from the input type.
Extracts Self from the source PyObject.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

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.