Expand description
Read and write SANE-encoded arrays
This is an implementation of the Simple Array of Numbers Encoding (SANE) specification at: https://github.com/considerate/sane
Modules§
Enums§
- Sane
- A Sane array is an array with dynamic shape and elements of one of the supported data types
Traits§
- Read
Sane - To be able read SANE-encoded data we need to be able convert the
Vec<u8>
of little-endian data to the corresponding vector of values - Sane
Data - An element type with the
SaneData
trait defines which of the supported data types it corresponds to - Write
Sane - To be able to write SANE data we need to be able to convert an element to a byte sequence
Functions§
- read_
sane - Parse a SANE-encoded file into an array with known type and rank
- read_
sane_ arrays - Parse multiple SANE-encoded arrays from a file
- read_
sane_ arrays_ dyn - Parse multiple SANE-encoded arrays each with dynamic data type and rank
- read_
sane_ dyn - Parse a SANE-encoded file into an array with dynamic type and rank
- write_
sane - Write array into a SANE-encoded file
- write_
sane_ arrays - Write multiple SANE-encoded arrays to a file
- write_
sane_ arrays_ dyn - Write multiple SANE-encoded arrays to a file, each with a dynamic shape and data type
- write_
sane_ arrays_ io - Write multiple SANE-encoded arrays to a file, returning
std::io::Error
s - write_
sane_ io - Write array into SANE-encoded file, returning
std::io::Error
s