pub enum ConformanceError {
PeakArrayLengthMismatch {
native_id: String,
mz_len: usize,
intensity_len: usize,
},
MobilityArrayLengthMismatch {
native_id: String,
mz_len: usize,
mobility_len: usize,
},
TicMismatch {
native_id: String,
declared: f64,
computed: f64,
},
BasePeakIntensityMismatch {
native_id: String,
declared: f64,
computed: f64,
},
MissingPrecursor {
native_id: String,
ms_level: u32,
},
RetentionTimeNonMonotonic {
prefix: String,
previous: f64,
current: f64,
native_id: String,
},
IndexSequence {
native_id: String,
previous: Option<usize>,
current: usize,
},
EmptySpectrum {
native_id: String,
},
}Expand description
Failure modes detected by assert_source_invariants.
Variants§
PeakArrayLengthMismatch
mz / intensity arrays have mismatched lengths.
MobilityArrayLengthMismatch
inv_mobility_per_peak.len() did not match mz.len().
TicMismatch
total_ion_current did not match sum(intensity) within tolerance.
BasePeakIntensityMismatch
base_peak_intensity did not match max(intensity) within tolerance.
MissingPrecursor
MS2+ spectrum was missing precursor info.
RetentionTimeNonMonotonic
Retention time went backwards within one acquisition stream.
IndexSequence
Spectrum index sequence was not strictly increasing or did not start at 0.
EmptySpectrum
Spectrum had no peaks at all.
Trait Implementations§
Source§impl Debug for ConformanceError
impl Debug for ConformanceError
Source§impl Display for ConformanceError
impl Display for ConformanceError
Source§impl Error for ConformanceError
impl Error for ConformanceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ConformanceError
impl RefUnwindSafe for ConformanceError
impl Send for ConformanceError
impl Sync for ConformanceError
impl Unpin for ConformanceError
impl UnsafeUnpin for ConformanceError
impl UnwindSafe for ConformanceError
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