Struct PyCFunctionObject
pub struct PyCFunctionObject {
pub ob_base: PyObject,
pub m_ml: *mut PyMethodDef,
pub m_self: *mut PyObject,
pub m_module: *mut PyObject,
pub m_weakreflist: *mut PyObject,
pub vectorcall: Option<unsafe extern "C" fn(*mut PyObject, *const *mut PyObject, usize, *mut PyObject) -> *mut PyObject>,
}Available on
Py_3_9 and non-Py_LIMITED_API and non-GraalPy and crate feature tls only.Fields§
§ob_base: PyObject§m_ml: *mut PyMethodDef§m_self: *mut PyObject§m_module: *mut PyObject§m_weakreflist: *mut PyObject§vectorcall: Option<unsafe extern "C" fn(*mut PyObject, *const *mut PyObject, usize, *mut PyObject) -> *mut PyObject>Available on non-
PyPy only.Auto Trait Implementations§
impl Freeze for PyCFunctionObject
impl RefUnwindSafe for PyCFunctionObject
impl !Send for PyCFunctionObject
impl !Sync for PyCFunctionObject
impl Unpin for PyCFunctionObject
impl UnsafeUnpin for PyCFunctionObject
impl UnwindSafe for PyCFunctionObject
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