pub struct IonReader { /* private fields */ }Implementations§
Source§impl IonReader
impl IonReader
pub fn spectrum_array_addresses( &self, index: usize, ) -> Option<Vec<ArrayAddress>>
pub fn chromatogram_array_addresses( &self, index: usize, ) -> Option<Vec<ArrayAddress>>
pub fn read_spectrum_values( &mut self, array_address: &ArrayAddress, out: &mut Vec<f64>, ) -> IonResult<()>
pub fn read_spectrum_array( &mut self, array_address: &ArrayAddress, ) -> IonResult<NumericArray>
pub fn read_chromatogram_values( &mut self, array_address: &ArrayAddress, out: &mut Vec<f64>, ) -> IonResult<()>
pub fn read_chromatogram_array( &mut self, array_address: &ArrayAddress, ) -> IonResult<NumericArray>
pub fn get_spectrum_array( &mut self, spectrum_index: usize, array_type: impl Into<u32>, ) -> IonResult<Vec<f64>>
Source§impl IonReader
impl IonReader
pub fn spectrum_summary(&self, index: usize) -> Option<SpectrumSummary>
pub fn spectrum_summaries(&self) -> IonResult<Vec<SpectrumSummary>>
pub fn chromatogram_summary(&self, index: usize) -> Option<ChromatogramSummary>
pub fn chromatogram_summaries(&self) -> IonResult<Vec<ChromatogramSummary>>
pub fn spectrum_metadata(&self) -> IonResult<Vec<Metadatum>>
pub fn chromatogram_metadata(&self) -> IonResult<Vec<Metadatum>>
pub fn spectrum_metadata_at( &mut self, index: usize, ) -> IonResult<Vec<Metadatum>>
pub fn chromatogram_metadata_at( &mut self, index: usize, ) -> IonResult<Vec<Metadatum>>
pub fn spectrum(&mut self, index: usize) -> IonResult<Option<Spectrum>>
pub fn chromatogram(&mut self, index: usize) -> IonResult<Option<Chromatogram>>
Source§impl IonReader
impl IonReader
pub fn read_spectrum_window( &mut self, index: usize, x_array_accession: impl Into<u32>, y_array_accession: impl Into<u32>, low: f64, high: f64, ) -> IonResult<DataXY>
pub fn require_bounds(&mut self) -> IonResult<()>
pub fn eic_byte_ranges( &mut self, mz: Range, rt: Option<Range>, gap: u64, ) -> IonResult<Vec<ByteRange>>
pub fn byte_ranges( &mut self, scan_index: usize, mz: Range, ) -> IonResult<Vec<ByteRange>>
pub fn read_window(&mut self, index: usize, mz: Range) -> IonResult<DataXY>
pub fn scans_in( &mut self, mz: Range, select: Select, ms_level: Option<u8>, visit: &mut dyn FnMut(&Window<'_>), ) -> IonResult<()>
pub fn candidate_items( &mut self, target: ItemKind, axis_accession: u32, lo: f64, hi: f64, ) -> IonResult<Vec<ItemSlice>>
Source§impl IonReader
impl IonReader
pub fn open(bytes: &[u8], config: ReadOptions) -> IonResult<Self>
pub fn open_file(path: &Path, config: ReadOptions) -> IonResult<Self>
pub fn open_source( source: Arc<dyn ReadBytes>, config: ReadOptions, ) -> IonResult<Self>
pub fn format_version(&self) -> u16
pub fn spectrum_count(&self) -> u64
pub fn chromatogram_count(&self) -> u64
Trait Implementations§
Source§impl ScanSource for IonReader
impl ScanSource for IonReader
Auto Trait Implementations§
impl !Freeze for IonReader
impl !RefUnwindSafe for IonReader
impl !Sync for IonReader
impl !UnwindSafe for IonReader
impl Send for IonReader
impl Unpin for IonReader
impl UnsafeUnpin for IonReader
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more