Trait extendr_api::prelude::io::FromNpy

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§

const DTYPE: NpyDType

Data type of the buffer data.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl FromNpy for f32

§

const DTYPE: NpyDType = NpyDType::F32

§

impl FromNpy for f64

§

const DTYPE: NpyDType = NpyDType::F64

Implementors§

§

impl FromNpy for c32

§

const DTYPE: NpyDType = NpyDType::C32

§

impl FromNpy for c64

§

const DTYPE: NpyDType = NpyDType::C64