pub struct FastaReader<R> { /* private fields */ }Expand description
Zero-copy streaming FASTA parser.
Implementations§
Source§impl<R: Read> FastaReader<R>
impl<R: Read> FastaReader<R>
Sourcepub fn with_capacity(capacity: usize, reader: R) -> Self
pub fn with_capacity(capacity: usize, reader: R) -> Self
Creates a reader with specified buffer capacity.
Sourcepub fn next_event(&mut self) -> Option<Result<Event<'_>, ReaderError>>
pub fn next_event(&mut self) -> Option<Result<Event<'_>, ReaderError>>
Returns the next event, or None at EOF.
Auto Trait Implementations§
impl<R> Freeze for FastaReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for FastaReader<R>where
R: RefUnwindSafe,
impl<R> Send for FastaReader<R>where
R: Send,
impl<R> Sync for FastaReader<R>where
R: Sync,
impl<R> Unpin for FastaReader<R>where
R: Unpin,
impl<R> UnwindSafe for FastaReader<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