Trait nifti::volume::element::DataElement[][src]

pub trait DataElement: 'static + Sized + Copy + AsPrimitive<u8> + AsPrimitive<f32> + AsPrimitive<f64> {
    type Transform: LinearTransform<Self>;
    fn from_raw<R: Read>(src: R, endianness: Endianness) -> Result<Self>;

    fn from_raw_vec(vec: Vec<u8>, endianness: Endianness) -> Result<Vec<Self>> { ... }
}

Trait type for characterizing a NIfTI data element, implemented for primitive numeric types which are used by the crate to represent voxel values.

Associated Types

For defining how this element is linearly transformed to another.

Required Methods

Read a single element from the given byte source.

Provided Methods

Transform the given data vector into a vector of data elements.

Implementations on Foreign Types

impl DataElement for u8
[src]

impl DataElement for i8
[src]

impl DataElement for u16
[src]

impl DataElement for i16
[src]

impl DataElement for u32
[src]

impl DataElement for i32
[src]

impl DataElement for u64
[src]

impl DataElement for i64
[src]

impl DataElement for f32
[src]

impl DataElement for f64
[src]

Implementors