Trait fastq::Record[][src]

pub trait Record {
    fn seq(&self) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn head(&self) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn qual(&self) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn write<W: Write>(&self, writer: &mut W) -> Result<usize>; fn validate_dna(&self) -> bool { ... }
fn validate_dnan(&self) -> bool { ... } }
Expand description

Trait to be implemented by types that represent fastq records.

Required methods

Return the fastq sequence as byte slice

Return the id-line of the record as byte slice

Return the quality of the bases as byte slice

Write the record to a writer

Provided methods

Return true if the sequence contains only A, C, T and G.

FIXME This might be much faster with a [bool; 256] array or using some simd instructions (eg with the jetscii crate).

Return true if the sequence contains only A, C, T, G and N.

FIXME This might be much faster with a [bool; 256] array or using some simd instructions (eg with the jetscii crate).

Implementors