Struct numpy::array::PyArray [] [src]

pub struct PyArray(_);

Untyped safe interface for NumPy ndarray.

Methods

impl PyArray
[src]

A synonym for PyArray_DIMS, named to be consistent with the ‘shape’ usage within Python.

Get data as a ndarray::ArrayView

Get data as a ndarray::ArrayViewMut

Get data as a Rust immutable slice

Get data as a Rust mutable slice

a wrapper of PyArray_SimpleNew

a wrapper of PyArray_ZEROS

a wrapper of PyArray_Arange

Trait Implementations

impl<'source> FromPyObject<'source> for PyArray
[src]

Extracts Self from the source PyObject.

impl<'source> FromPyObject<'source> for &'source PyArray
[src]

Extracts Self from the source PyObject.

impl ToPyObject for PyArray
[src]

Converts self into a Python object.

Converts self into a Python object. Read more

Converts self into a Python object and calls the specified closure on the native FFI pointer underlying the Python object. Read more

impl PythonObject for PyArray
[src]

Casts the Python object to PyObject.

Casts the Python object to PyObject.

Unchecked downcast from PyObject to Self. Undefined behavior if the input object does not have the expected type. Read more

Unchecked downcast from PyObject to Self. Undefined behavior if the input object does not have the expected type. Read more

impl PythonObjectWithCheckedDowncast for PyArray
[src]

Cast from PyObject to a concrete Python object type.

Cast from PyObject to a concrete Python object type.