[−][src]Trait needletail::formats::RecParser
[⚠️Unstable] RecParser is an adaptor trait that allows new file format
parsers to be defined. It takes a chunk from a RecBuffer (from_reader
),
optionally parses an initial header out (header
) and then provides an
iterator interface to parse a record stream. When finished, it provides an
eof
function to determine if the stream is completely exhausted.
Associated Types
type Header
Required methods
fn from_buffer(buf: &'s [u8], last: bool) -> Self
fn header(&mut self) -> Result<Self::Header, ParseError>
fn eof(&self) -> Result<(), ParseError>
fn used(&self) -> usize
Implementors
impl<'a> RecParser<'a> for FastaParser<'a>
[src]
type Header = ()
ⓘImportant traits for FastaParser<'a>fn from_buffer(buf: &[u8], last: bool) -> FastaParser
[src]
ⓘImportant traits for FastaParser<'a>
fn header(&mut self) -> Result<Self::Header, ParseError>
[src]
fn eof(&self) -> Result<(), ParseError>
[src]
fn used(&self) -> usize
[src]
impl<'a> RecParser<'a> for FastqParser<'a>
[src]
type Header = ()
ⓘImportant traits for FastqParser<'a>fn from_buffer(buf: &[u8], last: bool) -> FastqParser
[src]
ⓘImportant traits for FastqParser<'a>