Struct noodles_fasta::repository::adapters::IndexedReader
source · pub struct IndexedReader<R> { /* private fields */ }
Expand description
An indexed reader adapter.
Implementations§
source§impl<R> IndexedReader<R>
impl<R> IndexedReader<R>
sourcepub fn new(reader: IndexedReader<R>) -> Self
pub fn new(reader: IndexedReader<R>) -> Self
Creates an indexed reader adapter.
§Examples
use noodles_fasta::{self as fasta, repository::adapters::IndexedReader};
let index = Vec::new();
let reader = fasta::io::IndexedReader::new(io::empty(), index);
let adapter = IndexedReader::new(reader);
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for IndexedReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for IndexedReader<R>where
R: RefUnwindSafe,
impl<R> Send for IndexedReader<R>where
R: Send,
impl<R> Sync for IndexedReader<R>where
R: Sync,
impl<R> Unpin for IndexedReader<R>where
R: Unpin,
impl<R> UnwindSafe for IndexedReader<R>where
R: UnwindSafe,
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