#[repr(C)]pub union PyMethodPointer {
pub PyCFunction: unsafe extern "C" fn(slf: *mut PyObject, args: *mut PyObject) -> *mut PyObject,
pub PyCFunctionWithKeywords: unsafe extern "C" fn(slf: *mut PyObject, args: *mut PyObject, kwargs: *mut PyObject) -> *mut PyObject,
pub PyCFunctionFast: unsafe extern "C" fn(slf: *mut PyObject, args: *const *mut PyObject, nargs: isize) -> *mut PyObject,
pub PyCFunctionFastWithKeywords: unsafe extern "C" fn(slf: *mut PyObject, args: *const *mut PyObject, nargs: isize, kwnames: *mut PyObject) -> *mut PyObject,
}Fields§
§PyCFunction: unsafe extern "C" fn(slf: *mut PyObject, args: *mut PyObject) -> *mut PyObject§PyCFunctionWithKeywords: unsafe extern "C" fn(slf: *mut PyObject, args: *mut PyObject, kwargs: *mut PyObject) -> *mut PyObject§PyCFunctionFast: unsafe extern "C" fn(slf: *mut PyObject, args: *const *mut PyObject, nargs: isize) -> *mut PyObject§PyCFunctionFastWithKeywords: unsafe extern "C" fn(slf: *mut PyObject, args: *const *mut PyObject, nargs: isize, kwnames: *mut PyObject) -> *mut PyObjectTrait Implementations§
Source§impl Clone for PyMethodPointer
impl Clone for PyMethodPointer
impl Copy for PyMethodPointer
Auto Trait Implementations§
impl Forget for PyMethodPointer
impl Freeze for PyMethodPointer
impl Move for PyMethodPointer
impl RefUnwindSafe for PyMethodPointer
impl Send for PyMethodPointer
impl Sync for PyMethodPointer
impl Unpin for PyMethodPointer
impl UnsafeUnpin for PyMethodPointer
impl UnwindSafe for PyMethodPointer
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Helper for T
Source§impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
fn imaginary_into(self) -> U
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