Enum nifti::typedef::NiftiType[][src]

#[repr(u16)]pub enum NiftiType {
    Uint8,
    Int16,
    Int32,
    Float32,
    Complex64,
    Float64,
    Rgb24,
    Int8,
    Uint16,
    Uint32,
    Int64,
    Uint64,
    Float128,
    Complex128,
    Complex256,
    Rgba32,
}

Data type for representing a NIFTI value type in a volume. Methods for reading values of that type from a source are also included.

Variants

Uint8

unsigned char.

Int16

signed short.

Int32

signed int.

Float32

32 bit float.

Complex64

64 bit complex = 2 32 bit floats.

Float64

64 bit float = double.

Rgb24

3 8 bit bytes.

Int8

signed char.

Uint16

unsigned short.

Uint32

unsigned int.

Int64

signed long long.

Uint64

unsigned long long.

Float128

128 bit float = long double.

Complex128

128 bit complex = 2 64 bit floats.

Complex256

256 bit complex = 2 128 bit floats

Rgba32

4 8 bit bytes.

Implementations

impl NiftiType[src]

pub fn size_of(self) -> usize[src]

Retrieve the size of an element of this data type, in bytes.

impl NiftiType[src]

pub fn read_primitive_value<S, T>(
    self,
    source: S,
    endianness: Endianness,
    slope: f32,
    inter: f32
) -> Result<T> where
    S: Read,
    T: Mul<Output = T>,
    T: Add<Output = T>,
    T: DataElement
[src]

Read a primitive voxel value from a source.

Trait Implementations

impl Clone for NiftiType[src]

impl Copy for NiftiType[src]

impl Debug for NiftiType[src]

impl Eq for NiftiType[src]

impl FromPrimitive for NiftiType[src]

impl Hash for NiftiType[src]

impl PartialEq<NiftiType> for NiftiType[src]

impl StructuralEq for NiftiType[src]

impl StructuralPartialEq for NiftiType[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Debug + Any
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.