Struct pyo3::pycell::PyCellContents
source · [−]#[repr(C)]pub(crate) struct PyCellContents<T: PyClass> {
pub(crate) value: ManuallyDrop<UnsafeCell<T>>,
pub(crate) thread_checker: T::ThreadChecker,
pub(crate) dict: T::Dict,
pub(crate) weakref: T::WeakRef,
}
Fields
value: ManuallyDrop<UnsafeCell<T>>
thread_checker: T::ThreadChecker
dict: T::Dict
weakref: T::WeakRef
Auto Trait Implementations
impl<T> !RefUnwindSafe for PyCellContents<T>
impl<T> Send for PyCellContents<T> where
T: Send,
<T as PyClass>::Dict: Send,
<T as PyClassImpl>::ThreadChecker: Send,
<T as PyClass>::WeakRef: Send,
impl<T> !Sync for PyCellContents<T>
impl<T> Unpin for PyCellContents<T> where
T: Unpin,
<T as PyClass>::Dict: Unpin,
<T as PyClassImpl>::ThreadChecker: Unpin,
<T as PyClass>::WeakRef: Unpin,
impl<T> UnwindSafe for PyCellContents<T> where
T: UnwindSafe,
<T as PyClass>::Dict: UnwindSafe,
<T as PyClassImpl>::ThreadChecker: UnwindSafe,
<T as PyClass>::WeakRef: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more