pub struct IonReader { /* private fields */ }Implementations§
Source§impl IonReader
impl IonReader
pub fn spectrum_array( &mut self, spectrum_index: usize, array_type: impl Into<u32>, ) -> IonResult<Vec<f64>>
pub fn spectrum_array_into( &mut self, spectrum_index: usize, array_type: impl Into<u32>, out: &mut Vec<f64>, ) -> IonResult<()>
pub fn chromatogram_array( &mut self, chromatogram_index: usize, array_type: impl Into<u32>, ) -> IonResult<Vec<f64>>
pub fn chromatogram_array_into( &mut self, chromatogram_index: usize, array_type: impl Into<u32>, out: &mut Vec<f64>, ) -> IonResult<()>
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_summaries(&self) -> IonResult<Vec<ChromatogramSummary>>
pub fn spectrum_metadata_at(&mut self, index: usize) -> IonResult<Spectrum>
pub fn chromatogram_metadata_at( &mut self, index: usize, ) -> IonResult<Chromatogram>
Source§impl IonReader
impl IonReader
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, options: &ByteRangesOptions, ) -> IonResult<Vec<ByteRange>>
pub fn spectrum_window( &mut self, index: usize, x_kind: impl Into<u32>, y_kind: impl Into<u32>, range: Range, ) -> IonResult<DataXY>
pub fn scans_in( &mut self, query: &ScanQuery, visit: impl FnMut(&Window<'_>), ) -> IonResult<()>
Source§impl IonReader
impl IonReader
pub fn from_bytes(bytes: &[u8], options: &ReadOptions) -> IonResult<Self>
pub fn open(path: impl AsRef<Path>, options: &ReadOptions) -> IonResult<Self>
pub fn new(source: Arc<dyn ReadBytes>, options: &ReadOptions) -> IonResult<Self>
pub fn format_version(&self) -> u16
pub fn spectrum_count(&self) -> u64
pub fn chromatogram_count(&self) -> u64
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