pub enum Unit {
Show 23 variants
Unknown,
MZ,
Mass,
PartsPerMillion,
Nanometer,
Minute,
Second,
Millisecond,
VoltSecondPerSquareCentimeter,
DetectorCounts,
PercentBasePeak,
PercentBasePeakTimes100,
AbsorbanceUnit,
CountsPerSecond,
Electronvolt,
Volt,
Celsius,
Kelvin,
Pascal,
Psi,
MicrolitersPerMinute,
Percent,
Dimensionless,
}
Expand description
Units that a term’s value might have
Variants§
Unknown
MZ
Mass
PartsPerMillion
Nanometer
Minute
Second
Millisecond
VoltSecondPerSquareCentimeter
DetectorCounts
PercentBasePeak
PercentBasePeakTimes100
AbsorbanceUnit
CountsPerSecond
Electronvolt
Volt
Celsius
Kelvin
Pascal
Psi
MicrolitersPerMinute
Percent
Dimensionless
Implementations§
Source§impl Unit
impl Unit
pub const fn for_param(&self) -> (&'static str, &'static str)
pub const fn from_name(name: &str) -> Unit
pub const fn from_accession(acc: &str) -> Unit
pub const fn from_curie(acc: &CURIE) -> Unit
pub const fn to_curie(&self) -> Option<CURIE>
pub const fn from_param(param: &Param) -> Unit
pub const fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Ord for Unit
impl Ord for Unit
Source§impl PartialOrd for Unit
impl PartialOrd for Unit
impl Copy for Unit
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.