pub enum ArrayType {
Show 23 variants
Unknown,
MZArray,
IntensityArray,
ChargeArray,
SignalToNoiseArray,
TimeArray,
WavelengthArray,
IonMobilityArray,
MeanIonMobilityArray,
MeanDriftTimeArray,
MeanInverseReducedIonMobilityArray,
RawIonMobilityArray,
RawDriftTimeArray,
RawInverseReducedIonMobilityArray,
DeconvolutedIonMobilityArray,
DeconvolutedDriftTimeArray,
DeconvolutedInverseReducedIonMobilityArray,
BaselineArray,
ResolutionArray,
PressureArray,
TemperatureArray,
FlowRateArray,
NonStandardDataArray {
name: Box<String>,
},
}
Expand description
The kinds of data arrays found in mass spectrometry data files governed by the PSI-MS controlled vocabulary.
Variants§
Unknown
MZArray
IntensityArray
ChargeArray
SignalToNoiseArray
TimeArray
WavelengthArray
IonMobilityArray
MeanIonMobilityArray
MeanDriftTimeArray
MeanInverseReducedIonMobilityArray
RawIonMobilityArray
RawDriftTimeArray
RawInverseReducedIonMobilityArray
DeconvolutedIonMobilityArray
DeconvolutedDriftTimeArray
DeconvolutedInverseReducedIonMobilityArray
BaselineArray
ResolutionArray
PressureArray
TemperatureArray
FlowRateArray
NonStandardDataArray
Implementations§
Source§impl ArrayType
impl ArrayType
Sourcepub const fn preferred_dtype(&self) -> BinaryDataArrayType
pub const fn preferred_dtype(&self) -> BinaryDataArrayType
Get the data type that the array is compatible with in the
mzdata
type expectations.
By default, the m/z array is encoded using Float64
,
the charge state array is encoded using Int32
, and
all other arrays are encoded using Float32
.
Sourcepub const fn as_mean_ion_mobility(&self) -> Option<ArrayType>
pub const fn as_mean_ion_mobility(&self) -> Option<ArrayType>
Convert an ion mobility array to its mean variant
Sourcepub const fn as_raw_ion_mobility(&self) -> Option<ArrayType>
pub const fn as_raw_ion_mobility(&self) -> Option<ArrayType>
Convert an ion mobility array to its raw variant
Sourcepub const fn as_deconvoluted_ion_mobility(&self) -> Option<ArrayType>
pub const fn as_deconvoluted_ion_mobility(&self) -> Option<ArrayType>
Convert an ion mobility array to its deconvoluted variant
Sourcepub fn nonstandard<S>(name: S) -> ArrayTypewhere
S: ToString,
pub fn nonstandard<S>(name: S) -> ArrayTypewhere
S: ToString,
Create a ArrayType::NonStandardDataArray
with the provided name.
Sourcepub const fn is_ion_mobility(&self) -> bool
pub const fn is_ion_mobility(&self) -> bool
Test if the the array describes an ion mobility quantity.
Sourcepub fn as_param(&self, unit: Option<Unit>) -> Param
pub fn as_param(&self, unit: Option<Unit>) -> Param
Create a Param
for this array type.
If a unit is provided, that unit will be specified, otherwise a default unit may be used instead.
Sourcepub const fn as_param_const(&self) -> ParamCow<'static>
pub const fn as_param_const(&self) -> ParamCow<'static>
Create a ParamCow
for this array type in a const
context using the default unit.
NOTE: If this is a Self::NonStandardDataArray
, this function will panic as
this variant requires allocation.
Sourcepub const fn as_param_with_unit_const(&self, unit: Unit) -> ParamCow<'static>
pub const fn as_param_with_unit_const(&self, unit: Unit) -> ParamCow<'static>
Create a ParamCow
for this array type in a const
context using the provided unit.
NOTE: If this is a Self::NonStandardDataArray
, this function will panic as
this variant requires allocation.
Trait Implementations§
Source§impl Ord for ArrayType
impl Ord for ArrayType
Source§impl PartialOrd for ArrayType
impl PartialOrd for ArrayType
impl Eq for ArrayType
impl StructuralPartialEq for ArrayType
Auto Trait Implementations§
impl Freeze for ArrayType
impl RefUnwindSafe for ArrayType
impl Send for ArrayType
impl Sync for ArrayType
impl Unpin for ArrayType
impl UnwindSafe for ArrayType
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
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
key
and return true
if they are equal.