Struct npy::NpyData [] [src]

pub struct NpyData<'a, T> { /* fields omitted */ }

The data structure representing a deserialized npy file.

The data is internally stored as a byte array, and deserialized only on-demand to minimize unnecessary allocations. The whole contents of the file can be deserialized by the to_vec member function.

Methods

impl<'a, T: Serializable> NpyData<'a, T>
[src]

[src]

Deserialize a NPY file represented as bytes

[src]

Gets a single data-record with the specified index. Returns None, if the index is out of bounds

[src]

Returns the total number of records

[src]

Returns whether there are zero records in this NpyData structure

[src]

Gets a single data-record wit the specified index. Panics, if the index is out of bounds.

[src]

Construct a vector with the deserialized contents of the whole file

Trait Implementations

impl<'a, T: 'a + Serializable> IntoIterator for NpyData<'a, T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<'a, T> Send for NpyData<'a, T> where
    T: Send

impl<'a, T> Sync for NpyData<'a, T> where
    T: Sync