[][src]Trait ndarray_npy::ReadableElement

pub trait ReadableElement: Sized {
    type Error: 'static + Error + Send + Sync;
    fn read_vec<R: Read>(
        reader: R,
        type_desc: &PyValue,
        len: usize
    ) -> Result<Vec<Self>, Self::Error>; }

An array element type that can be read from an .npy or .npz file.

Associated Types

type Error: 'static + Error + Send + Sync

Loading content...

Required methods

fn read_vec<R: Read>(
    reader: R,
    type_desc: &PyValue,
    len: usize
) -> Result<Vec<Self>, Self::Error>

Checks type_desc and reads a Vec of length len from reader.

Loading content...

Implementations on Foreign Types

impl ReadableElement for i8[src]

type Error = ReadPrimitiveError

impl ReadableElement for u8[src]

type Error = ReadPrimitiveError

impl ReadableElement for i16[src]

type Error = ReadPrimitiveError

impl ReadableElement for i32[src]

type Error = ReadPrimitiveError

impl ReadableElement for i64[src]

type Error = ReadPrimitiveError

impl ReadableElement for u16[src]

type Error = ReadPrimitiveError

impl ReadableElement for u32[src]

type Error = ReadPrimitiveError

impl ReadableElement for u64[src]

type Error = ReadPrimitiveError

impl ReadableElement for f32[src]

type Error = ReadPrimitiveError

impl ReadableElement for f64[src]

type Error = ReadPrimitiveError

impl ReadableElement for bool[src]

type Error = ReadPrimitiveError

Loading content...

Implementors

Loading content...