pub struct PyRefMut<'p, T: PyClass> { /* fields omitted */ }
Expand description
Wraps a mutable borrowed reference to a value in a PyCell<T>
.
See the PyCell
and PyRef
documentation for more.
Returns a Python
token.
This function is safe since PyRefMut
has the same lifetime as a GILGuard
.
Retrieves the underlying FFI pointer (as a borrowed pointer).
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Mutably dereferences the value.
Executes the destructor for this type. Read more
Extracts Self
from the source PyObject
.
The type returned in the event of a conversion error.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.