Struct noodles_fastq::Indexer [−][src]
pub struct Indexer<R> { /* fields omitted */ }
Expand description
A FASTQ indexer.
Implementations
Creates a FASTQ indexer.
Examples
use noodles_fastq as fastq;
let data = b"@r0\nACTG\n+\nNDLS\n";
let mut indexer = fastq::Indexer::new(&data[..]);
Indexes a FASTQ record.
Examples
use noodles_fastq::{self as fastq, fai};
let data = b"@r0\nACTG\n+\nNDLS\n";
let mut indexer = fastq::Indexer::new(&data[..]);
let actual = indexer.index_record()?;
let expected = fai::Record::new(String::from("r0"), 4, 4, 4, 5, 11);
assert_eq!(actual, Some(expected));