Trait mzdata::io::traits::ScanSource[][src]

pub trait ScanSource<S: SpectrumBehavior>: Iterator<Item = S> + Sized {
    fn reset(&mut self) -> &Self;
fn get_spectrum_by_id(&mut self, id: &str) -> Option<S>;
fn get_spectrum_by_index(&mut self, index: usize) -> Option<S>;
fn get_index(&self) -> &OffsetIndex; fn len(&self) -> usize { ... }
fn _offset_of_id(&self, id: &str) -> Option<u64> { ... }
fn _offset_of_index(&self, index: usize) -> Option<u64> { ... }
fn _offset_of_time(&mut self, time: f64) -> Option<u64> { ... }
fn get_spectrum_by_time(&mut self, time: f64) -> Option<S> { ... }
fn iter(&mut self) -> ScanIterator<'_, Self, S>

Notable traits for ScanIterator<'lifespan, R, S>

impl<'lifespan, R: ScanSource<S>, S: SpectrumBehavior> Iterator for ScanIterator<'lifespan, R, S> type Item = S;
{ ... } }

Required methods

Retrieve a spectrum by it’s native ID

Retrieve a spectrum by it’s integer index

Provided methods

Retrieve the number of spectra in source file

Retrieve a spectrum by its scan start time

Implementors