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

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

unsigned char.

signed short.

signed int.

32 bit float.

64 bit complex = 2 32 bit floats.

64 bit float = double.

3 8 bit bytes.

signed char.

unsigned short.

unsigned int.

signed long long.

unsigned long long.

128 bit float = long double.

128 bit complex = 2 64 bit floats.

256 bit complex = 2 128 bit floats

4 8 bit bytes.

Methods

impl NiftiType
[src]

[src]

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

impl NiftiType
[src]

[src]

Read a primitive voxel value from a source.

Trait Implementations

impl Debug for NiftiType
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for NiftiType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for NiftiType
[src]

impl Hash for NiftiType
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for NiftiType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for NiftiType
[src]

impl FromPrimitive for NiftiType
[src]

[src]

Convert an i64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an u64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an isize to return an optional value of this type. If the value cannot be represented by this value, the None is returned. Read more

[src]

Convert an i8 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an i16 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an i32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert a usize to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an u8 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an u16 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert an u32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert a f32 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more

[src]

Convert a f64 to return an optional value of this type. If the type cannot be represented by this value, the None is returned. Read more