Enum nifti::typedef::Unit [−][src]
#[repr(u8)]pub enum Unit { Unknown, Meter, Mm, Micron, Sec, Msec, Usec, Hz, Ppm, Rads, }
An enum type which represents a unit type.
Variants
Unknown
NIFTI code for unspecified units.
Meter
NIFTI code for meters.
Mm
NIFTI code for millimeters.
Micron
NIFTI code for micrometers.
Sec
NIFTI code for seconds.
Msec
NIFTI code for milliseconds.
Usec
NIFTI code for microseconds.
Hz
NIFTI code for Hertz.
Ppm
NIFTI code for ppm.
Rads
NIFTI code for radians per second.
Trait Implementations
impl Debug for Unit
[src]
impl Debug for Unit
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 Unit
[src]
impl PartialEq for Unit
fn eq(&self, other: &Unit) -> bool
[src]
fn eq(&self, other: &Unit) -> 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
1.0.0
[src]This method tests for !=
.
impl Eq for Unit
[src]
impl Eq for Unit
impl Hash for Unit
[src]
impl Hash for Unit
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,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for Unit
[src]
impl Clone for Unit
fn clone(&self) -> Unit
[src]
fn clone(&self) -> Unit
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Unit
[src]
impl Copy for Unit