Trait FromNpy

Source
pub trait FromNpy: SimpleEntity {
    const DTYPE: NpyDType;
}
Expand description

Trait implemented for native types that can be read from a npy buffer.

Required Associated Constants§

Source

const DTYPE: NpyDType

Data type of the buffer data.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromNpy for f32

Source§

const DTYPE: NpyDType = NpyDType::F32

Source§

impl FromNpy for f64

Source§

const DTYPE: NpyDType = NpyDType::F64

Implementors§

Source§

impl FromNpy for c32

Source§

const DTYPE: NpyDType = NpyDType::C32

Source§

impl FromNpy for c64

Source§

const DTYPE: NpyDType = NpyDType::C64