[−][src]Struct pyo3::pycell::PyRefMut
Wraps a mutable borrowed reference to a value in a PyCell<T>
.
Implementations
impl<'p, T: PyClass> PyRefMut<'p, T>
[src]
pub fn py(&self) -> Python<'_>
[src]
Returns Python
token.
This function is safe since PyRefMut has the same lifetime as a GILGuard
.
impl<'p, T, U> PyRefMut<'p, T> where
T: PyClass + PyTypeInfo<BaseType = U, BaseLayout = PyCellInner<U>>,
U: PyClass,
[src]
T: PyClass + PyTypeInfo<BaseType = U, BaseLayout = PyCellInner<U>>,
U: PyClass,
pub fn into_super(self) -> PyRefMut<'p, U>
[src]
Get PyRef<T::BaseType>
.
See PyRef::into_super
for more.
Trait Implementations
impl<'p, T, U> AsMut<U> for PyRefMut<'p, T> where
T: PyClass + PyTypeInfo<BaseType = U, BaseLayout = PyCellInner<U>>,
U: PyClass,
[src]
T: PyClass + PyTypeInfo<BaseType = U, BaseLayout = PyCellInner<U>>,
U: PyClass,
impl<'a, T: PyClass> AsPyPointer for PyRefMut<'a, T>
[src]
impl<'p, T, U> AsRef<U> for PyRefMut<'p, T> where
T: PyClass + PyTypeInfo<BaseType = U, BaseLayout = PyCellInner<U>>,
U: PyClass,
[src]
T: PyClass + PyTypeInfo<BaseType = U, BaseLayout = PyCellInner<U>>,
U: PyClass,
impl<T: PyClass + Debug, '_> Debug for PyRefMut<'_, T>
[src]
impl<'p, T: PyClass> Deref for PyRefMut<'p, T>
[src]
impl<'p, T: PyClass> DerefMut for PyRefMut<'p, T>
[src]
impl<'p, T: PyClass> Drop for PyRefMut<'p, T>
[src]
impl<'a, T> From<PyRefMut<'a, T>> for Py<T> where
T: PyClass,
[src]
T: PyClass,
impl<'p, T: PyClass> FromPy<PyRefMut<'p, T>> for PyObject
[src]
impl<'a, T> FromPyObject<'a> for PyRefMut<'a, T> where
T: PyClass,
[src]
T: PyClass,
impl<'a, T: PyClass> TryFrom<&'a PyCell<T>> for PyRefMut<'a, T>
[src]
Auto Trait Implementations
impl<'p, T> !RefUnwindSafe for PyRefMut<'p, T>
impl<'p, T> !Send for PyRefMut<'p, T>
impl<'p, T> !Sync for PyRefMut<'p, T>
impl<'p, T> Unpin for PyRefMut<'p, T>
impl<'p, T> !UnwindSafe for PyRefMut<'p, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FromPy<T> for T
[src]
impl<'a, T> FromPyObject<'a> for T where
T: PyClass + Clone,
[src]
T: PyClass + Clone,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoPy<U> for T where
U: FromPy<T>,
[src]
U: FromPy<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,