Struct pyo3::ffi::PyCFunctionObject
source · 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
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 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
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