Struct numpy::npyffi::array::PyArrayModule [] [src]

pub struct PyArrayModule { /* fields omitted */ }

Low-Level binding for Array API https://docs.scipy.org/doc/numpy/reference/c-api.array.html

Most of Array API is exposed as the related function of this module object. Some APIs (including most accessor) in the above URL are not implemented since they are defined as C macro, and cannot be called from rust. Some of these are implemented on the high-level interface as a Rust function.

Methods

impl PyArrayModule
[src]

Import numpy.core.multiarray to use Array API.

impl PyArrayModule
[src]

Methods from Deref<Target = PyModule>

Return the dictionary object that implements module's namespace; this object is the same as the __dict__ attribute of the module object.

Gets the module name.

May fail if the module does not have a __name__ attribute.

Gets the module filename.

May fail if the module does not have a __file__ attribute.

Gets a member from the module. This is equivalent to the Python expression: getattr(module, name)

Calls a function in the module. This is equivalent to the Python expression: getattr(module, name)(*args, **kwargs)

Adds a member to the module.

This is a convenience function which can be used from the module's initialization function.

Adds a new extension type to the module.

This is a convenience function that initializes the py_class!(), sets new_type.__module__ to this module's name,

Trait Implementations

impl Deref for PyArrayModule
[src]

The resulting type after dereferencing

The method called to dereference a value