noodles_csi::io

Struct IndexedReader

Source
pub struct IndexedReader<R, I> { /* private fields */ }
Expand description

An indexed reader.

Implementations§

Source§

impl<R, I> IndexedReader<Reader<R>, I>
where R: Read, I: BinningIndex,

Source

pub fn new(inner: R, index: I) -> Self

Creates a indexed reader.

Source

pub fn get_ref(&self) -> &Reader<R>

Returns a reference to the underlying reader.

Source

pub fn get_mut(&mut self) -> &mut Reader<R>

Returns a mutable reference to the underlying reader.

Source

pub fn into_inner(self) -> Reader<R>

Returns the underlying reader.

Source

pub fn index(&self) -> &I

Returns the associated index.

Source§

impl<R, I> IndexedReader<Reader<R>, I>
where R: Read + Seek, I: BinningIndex,

Source

pub fn query<'r>( &'r mut self, region: &'r Region, ) -> Result<impl Iterator<Item = Result<Record>> + 'r>

Returns an iterator over records that intersects the given region.

Auto Trait Implementations§

§

impl<R, I> Freeze for IndexedReader<R, I>
where R: Freeze, I: Freeze,

§

impl<R, I> RefUnwindSafe for IndexedReader<R, I>

§

impl<R, I> Send for IndexedReader<R, I>
where R: Send, I: Send,

§

impl<R, I> Sync for IndexedReader<R, I>
where R: Sync, I: Sync,

§

impl<R, I> Unpin for IndexedReader<R, I>
where R: Unpin, I: Unpin,

§

impl<R, I> UnwindSafe for IndexedReader<R, I>
where R: UnwindSafe, I: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.