pub struct PyUFuncAPI(/* private fields */);
Implementations§
Source§impl PyUFuncAPI
impl PyUFuncAPI
pub unsafe fn PyUFunc_FromFuncAndData<'py>( &self, py: Python<'py>, func: *mut PyUFuncGenericFunction, data: *mut *mut c_void, types: *mut c_char, ntypes: c_int, nin: c_int, nout: c_int, identity: c_int, name: *const c_char, doc: *const c_char, unused: c_int, ) -> *mut PyObject
pub unsafe fn PyUFunc_RegisterLoopForType<'py>( &self, py: Python<'py>, ufunc: *mut PyUFuncObject, usertype: c_int, function: PyUFuncGenericFunction, arg_types: *mut c_int, data: *mut c_void, ) -> c_int
pub unsafe fn PyUFunc_GenericFunction<'py>( &self, py: Python<'py>, ufunc: *mut PyUFuncObject, args: *mut PyObject, kwds: *mut PyObject, op: *mut *mut PyArrayObject, ) -> c_int
pub unsafe fn PyUFunc_f_f_As_d_d<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_d_d<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_f_f<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_g_g<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_F_F_As_D_D<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_F_F<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_D_D<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_G_G<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_O_O<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_ff_f_As_dd_d<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_ff_f<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_dd_d<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_gg_g<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_FF_F_As_DD_D<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_DD_D<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_FF_F<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_GG_G<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_OO_O<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_O_O_method<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_OO_O_method<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_On_Om<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_GetPyValues<'py>( &self, py: Python<'py>, name: *mut c_char, bufsize: *mut c_int, errmask: *mut c_int, errobj: *mut *mut PyObject, ) -> c_int
pub unsafe fn PyUFunc_checkfperr<'py>( &self, py: Python<'py>, errmask: c_int, errobj: *mut PyObject, first: *mut c_int, ) -> c_int
pub unsafe fn PyUFunc_clearfperr<'py>(&self, py: Python<'py>)
pub unsafe fn PyUFunc_getfperr<'py>(&self, py: Python<'py>) -> c_int
pub unsafe fn PyUFunc_handlefperr<'py>( &self, py: Python<'py>, errmask: c_int, errobj: *mut PyObject, retstatus: c_int, first: *mut c_int, ) -> c_int
pub unsafe fn PyUFunc_ReplaceLoopBySignature<'py>( &self, py: Python<'py>, func: *mut PyUFuncObject, newfunc: PyUFuncGenericFunction, signature: *mut c_int, oldfunc: *mut PyUFuncGenericFunction, ) -> c_int
pub unsafe fn PyUFunc_FromFuncAndDataAndSignature<'py>( &self, py: Python<'py>, func: *mut PyUFuncGenericFunction, data: *mut *mut c_void, types: *mut c_char, ntypes: c_int, nin: c_int, nout: c_int, identity: c_int, name: *const c_char, doc: *const c_char, unused: c_int, signature: *const c_char, ) -> *mut PyObject
pub unsafe fn PyUFunc_SetUsesArraysAsData<'py>( &self, py: Python<'py>, data: *mut *mut c_void, i: usize, ) -> c_int
pub unsafe fn PyUFunc_e_e<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_e_e_As_f_f<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_e_e_As_d_d<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_ee_e<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_ee_e_As_ff_f<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_ee_e_As_dd_d<'py>( &self, py: Python<'py>, args: *mut *mut c_char, dimensions: *mut npy_intp, steps: *mut npy_intp, func: *mut c_void, )
pub unsafe fn PyUFunc_DefaultTypeResolver<'py>( &self, py: Python<'py>, ufunc: *mut PyUFuncObject, casting: NPY_CASTING, operands: *mut *mut PyArrayObject, type_tup: *mut PyObject, out_dtypes: *mut *mut PyArray_Descr, ) -> c_int
pub unsafe fn PyUFunc_ValidateCasting<'py>( &self, py: Python<'py>, ufunc: *mut PyUFuncObject, casting: NPY_CASTING, operands: *mut *mut PyArrayObject, dtypes: *mut *mut PyArray_Descr, ) -> c_int
pub unsafe fn PyUFunc_RegisterLoopForDescr<'py>( &self, py: Python<'py>, ufunc: *mut PyUFuncObject, user_dtype: *mut PyArray_Descr, function: PyUFuncGenericFunction, arg_dtypes: *mut *mut PyArray_Descr, data: *mut c_void, ) -> c_int
pub unsafe fn PyUFunc_FromFuncAndDataAndSignatureAndIdentity<'py>( &self, py: Python<'py>, ufunc: *mut PyUFuncObject, data: *mut *mut c_void, types: *mut c_char, ntypes: c_int, nin: c_int, nout: c_int, identity: c_int, name: *const c_char, doc: *const c_char, unused: c_int, signature: *const c_char, identity_value: *const c_char, ) -> c_int
Trait Implementations§
impl Send for PyUFuncAPI
impl Sync for PyUFuncAPI
Auto Trait Implementations§
impl !Freeze for PyUFuncAPI
impl !RefUnwindSafe for PyUFuncAPI
impl Unpin for PyUFuncAPI
impl UnwindSafe for PyUFuncAPI
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.