pub struct PyWeakReference {
pub ob_base: PyObject,
pub wr_object: *mut PyObject,
pub wr_callback: *mut PyObject,
pub hash: isize,
pub wr_prev: *mut _PyWeakReference,
pub wr_next: *mut _PyWeakReference,
}
Fields§
§ob_base: PyObject
§wr_object: *mut PyObject
§wr_callback: *mut PyObject
§hash: isize
§wr_prev: *mut _PyWeakReference
§wr_next: *mut _PyWeakReference
Trait Implementations§
impl PyLayout<PyWeakrefReference> for PyWeakReference
impl PySizedLayout<PyWeakrefReference> for PyWeakReference
Auto Trait Implementations§
impl Freeze for _PyWeakReference
impl RefUnwindSafe for _PyWeakReference
impl !Send for _PyWeakReference
impl !Sync for _PyWeakReference
impl Unpin for _PyWeakReference
impl UnwindSafe for _PyWeakReference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more