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.
Methods
impl NiftiType
[src]
impl NiftiType
impl NiftiType
[src]
impl NiftiType
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,
u8: AsPrimitive<T>,
i8: AsPrimitive<T>,
u16: AsPrimitive<T>,
i16: AsPrimitive<T>,
u32: AsPrimitive<T>,
i32: AsPrimitive<T>,
u64: AsPrimitive<T>,
i64: AsPrimitive<T>,
f32: AsPrimitive<T>,
f64: AsPrimitive<T>,
[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,
u8: AsPrimitive<T>,
i8: AsPrimitive<T>,
u16: AsPrimitive<T>,
i16: AsPrimitive<T>,
u32: AsPrimitive<T>,
i32: AsPrimitive<T>,
u64: AsPrimitive<T>,
i64: AsPrimitive<T>,
f32: AsPrimitive<T>,
f64: AsPrimitive<T>,
Read a primitive voxel value from a source.
Trait Implementations
impl Debug for NiftiType
[src]
impl Debug for NiftiType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for NiftiType
[src]
impl PartialEq for NiftiType
fn eq(&self, other: &NiftiType) -> bool
[src]
fn eq(&self, other: &NiftiType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for NiftiType
[src]
impl Eq for NiftiType
impl Hash for NiftiType
[src]
impl Hash for NiftiType
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for NiftiType
[src]
impl Clone for NiftiType
fn clone(&self) -> NiftiType
[src]
fn clone(&self) -> NiftiType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for NiftiType
[src]
impl Copy for NiftiType