extendr_api::prelude::io

Trait 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.

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§

§

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