Struct PyGenObject
#[repr(C)]pub struct PyGenObject {
pub ob_base: PyObject,
pub gi_weakreflist: *mut PyObject,
pub gi_name: *mut PyObject,
pub gi_qualname: *mut PyObject,
pub gi_exc_state: _PyErr_StackItem,
pub gi_origin_or_finalizer: *mut PyObject,
pub gi_hooks_inited: i8,
pub gi_closed: i8,
pub gi_running_async: i8,
pub gi_frame_state: i8,
pub gi_iframe: [*mut PyObject; 1],
}Available on crate feature
tls and neither PyPy nor GraalPy nor Py_3_14 only.Fields§
§ob_base: PyObject§gi_weakreflist: *mut PyObject§gi_name: *mut PyObject§gi_qualname: *mut PyObject§gi_exc_state: _PyErr_StackItem§gi_origin_or_finalizer: *mut PyObjectAvailable on
§Py_3_11 only.gi_hooks_inited: i8Available on
§Py_3_11 only.gi_closed: i8Available on
§Py_3_11 only.gi_running_async: i8Available on
§Py_3_11 only.gi_frame_state: i8Available on
§Py_3_11 only.gi_iframe: [*mut PyObject; 1]Available on
Py_3_11 only.Auto Trait Implementations§
impl Freeze for PyGenObject
impl RefUnwindSafe for PyGenObject
impl !Send for PyGenObject
impl !Sync for PyGenObject
impl Unpin for PyGenObject
impl UnsafeUnpin for PyGenObject
impl UnwindSafe for PyGenObject
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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