Enum nifti::typedef::NiftiType [−][src]
#[repr(u16)] pub enum NiftiType {}Show variants
Uint8, Int16, Int32, Float32, Complex64, Float64, Rgb24, Int8, Uint16, Uint32, Int64, Uint64, Float128, Complex128, Complex256, Rgba32,
Expand description
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.
Implementations
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]
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
Converts an i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts a usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts an u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Converts a f32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
Auto Trait Implementations
impl RefUnwindSafe for NiftiType
impl UnwindSafe for NiftiType
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Checks if self
is actually part of its subset T
(and can be converted to it).
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
The inclusion map: converts self
to the equivalent element of its superset.