pub fn assert_source_invariants<S: SpectrumSource>(
src: &mut S,
) -> Result<usize, ConformanceError>Expand description
Run the invariant suite against a borrowed source. Returns the first
failure encountered, or Ok(spectrum_count) if every spectrum passed.
The source is iterated to completion on success; on failure iteration stops at the offending spectrum.