Trait numpy::Element [−][src]
pub trait Element: Clone + Send { 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
Required methods
fn is_same_type(dtype: &PyArrayDescr) -> bool
fn is_same_type(dtype: &PyArrayDescr) -> bool
Returns if the give dtype
is convertible to Self
in Rust.
Provided methods
Returns the corresponding Enumerated Type.
fn get_dtype(py: Python<'_>) -> &PyArrayDescr
fn get_dtype(py: Python<'_>) -> &PyArrayDescr
Create dtype
.