Function fastq::each_zipped[][src]

pub fn each_zipped<R1, R2, F>(
    parser1: Parser<R1>,
    parser2: Parser<R2>,
    callback: F
) -> Result<(bool, bool)> where
    R1: Read,
    R2: Read,
    F: FnMut(Option<RefRecord>, Option<RefRecord>) -> (bool, bool)

Step through two fastq files and call a callback for pairs of Records.

The callback returns a tuple of bools that indicate for each parser if it should advance the iterator. This can be used to deal with single reads that are interleaved in paired sequences and would otherwise lead to misaligned pairs. Iteration ends if either both advance flags are false or if both iterators are exhausted.

The returned bool tuple indicates which parsers were exhausetd.