[][src]Enum matfile::NumericData

pub enum NumericData {
    Int8 {
        real: Vec<i8>,
        imag: Option<Vec<i8>>,
    },
    UInt8 {
        real: Vec<u8>,
        imag: Option<Vec<u8>>,
    },
    Int16 {
        real: Vec<i16>,
        imag: Option<Vec<i16>>,
    },
    UInt16 {
        real: Vec<u16>,
        imag: Option<Vec<u16>>,
    },
    Int32 {
        real: Vec<i32>,
        imag: Option<Vec<i32>>,
    },
    UInt32 {
        real: Vec<u32>,
        imag: Option<Vec<u32>>,
    },
    Int64 {
        real: Vec<i64>,
        imag: Option<Vec<i64>>,
    },
    UInt64 {
        real: Vec<u64>,
        imag: Option<Vec<u64>>,
    },
    Single {
        real: Vec<f32>,
        imag: Option<Vec<f32>>,
    },
    Double {
        real: Vec<f64>,
        imag: Option<Vec<f64>>,
    },
}

Stores the data of a numerical array and abstracts over the actual data type used. Real and imaginary parts are stored in separate vectors with the imaginary part being optional.

Numerical data is stored in column-major order. When talking about higher dimensional arrays this means that the index of the first dimension varies fastest.

Variants

Int8

Fields of Int8

real: Vec<i8>imag: Option<Vec<i8>>
UInt8

Fields of UInt8

real: Vec<u8>imag: Option<Vec<u8>>
Int16

Fields of Int16

real: Vec<i16>imag: Option<Vec<i16>>
UInt16

Fields of UInt16

real: Vec<u16>imag: Option<Vec<u16>>
Int32

Fields of Int32

real: Vec<i32>imag: Option<Vec<i32>>
UInt32

Fields of UInt32

real: Vec<u32>imag: Option<Vec<u32>>
Int64

Fields of Int64

real: Vec<i64>imag: Option<Vec<i64>>
UInt64

Fields of UInt64

real: Vec<u64>imag: Option<Vec<u64>>
Single

Fields of Single

real: Vec<f32>imag: Option<Vec<f32>>
Double

Fields of Double

real: Vec<f64>imag: Option<Vec<f64>>

Trait Implementations

impl Clone for NumericData[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for NumericData[src]

Auto Trait Implementations

impl Send for NumericData

impl Sync for NumericData

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]