Trait numpy::Element[][src]

pub trait Element: Clone {
    const DATA_TYPE: DataType;

    fn is_same_type(dtype: &PyArrayDescr) -> bool;

    fn npy_type() -> NPY_TYPES { ... }
fn get_dtype(py: Python<'_>) -> &PyArrayDescr { ... } }
Expand description

Represents that a type can be an element of PyArray.

Associated Constants

DataType corresponding to this type.

Required methods

Returns if the give dtype is convertible to Self in Rust.

Provided methods

Returns the corresponding Enumerated Type.

Create dtype.

Implementations on Foreign Types

Implementors