pub trait PyArray0Methods<'py, T>: PyArrayMethods<'py, T, Ix0> {
    // Provided method
    fn item(&self) -> T
       where T: Element + Copy { ... }
}
Expand description

Implementation of functionality for PyArray0<T>.

Provided Methods§

source

fn item(&self) -> T
where T: Element + Copy,

Get the single element of a zero-dimensional array.

See inner for an example.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'py, T> PyArray0Methods<'py, T> for Bound<'py, PyArray0<T>>

Implementors§