Struct numpy::npyffi::ufunc::PyUFuncAPI

source ·
pub struct PyUFuncAPI(/* private fields */);

Implementations§

source§

impl PyUFuncAPI

source

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

source

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

source

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

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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

source

pub unsafe fn PyUFunc_checkfperr<'py>( &self, py: Python<'py>, errmask: c_int, errobj: *mut PyObject, first: *mut c_int ) -> c_int

source

pub unsafe fn PyUFunc_clearfperr<'py>(&self, py: Python<'py>)

source

pub unsafe fn PyUFunc_getfperr<'py>(&self, py: Python<'py>) -> c_int

source

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

source

pub unsafe fn PyUFunc_ReplaceLoopBySignature<'py>( &self, py: Python<'py>, func: *mut PyUFuncObject, newfunc: PyUFuncGenericFunction, signature: *mut c_int, oldfunc: *mut PyUFuncGenericFunction ) -> c_int

source

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

source

pub unsafe fn PyUFunc_SetUsesArraysAsData<'py>( &self, py: Python<'py>, data: *mut *mut c_void, i: usize ) -> c_int

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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 )

source

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

source

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

source

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

source

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§

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

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

Checks if self is actually part of its subset T (and can be converted to it).
§

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

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Ungil for T
where T: Send,