pub fn write(
        &mut self,
        id: &str,
        desc: Option<&str>,
        seq: TextSlice<'_>,
        qual: &[u8],
    ) -> io::Result<()> {
        self.writer.write_all(b"@")?;
        self.writer.write_all(id.as_bytes())?;
        if let Some(desc) = desc {
            self.writer.write_all(b" ")?;
            self.writer.write_all(desc.as_bytes())?;
        }
        self.writer.write_all(b"\n")?;
        self.writer.write_all(seq)?;
        self.writer.write_all(b"\n+\n")?;
        self.writer.write_all(qual)?;
        self.writer.write_all(b"\n")?;

        Ok(())
    }
/// Write a FastQ record with given id, optional description, sequence and qualities.
Write a FastQ record with given id, optional description, sequence and qualities.
Write a FastQ record with given id optional description sequence and qualities .
pub fn write(
        &mut self,
        id: &str,
        desc: Option<&str>,
        seq: TextSlice<'_>,
        qual: &[u8],
    ) -> io::Result<()> {
        self.writer.write_all(b"@")?;
        self.writer.write_all(id.as_bytes())?;
        if let Some(desc) = desc {
            self.writer.write_all(b" ")?;
            self.writer.write_all(desc.as_bytes())?;
        }
        self.writer.write_all(b"\n")?;
        self.writer.write_all(seq)?;
        self.writer.write_all(b"\n+\n")?;
        self.writer.write_all(qual)?;
        self.writer.write_all(b"\n")?;
        Ok(())
    }
pub fn write ( & mut self , id : & str , desc : Option < & str > , seq : TextSlice < ' _ > , qual : & [ u8 ] , ) -> io :: Result < ( ) > { self . writer . write_all ( b" " ) ? ; self . writer . write_all ( id . as_bytes ( ) ) ? ; if let Some ( desc ) = desc { self . writer . write_all ( b" " ) ? ; self . writer . write_all ( desc . as_bytes ( ) ) ? ; } self . writer . write_all ( b" \n " ) ? ; self . writer . write_all ( seq ) ? ; self . writer . write_all ( b" \n \n " ) ? ; self . writer . write_all ( qual ) ? ; self . writer . write_all ( b" \n " ) ? ; Ok ( ( ) ) }
Write a FastQ record with given id, optional description, sequence and qualities.
Write a FastQ record with given id optional description sequence and qualities .
&mut self
id
&str
desc
Option<&str>
seq
TextSlice<'_>
qual
&[u8]
&mut self
id
&str
desc
Option<&str>
seq
TextSlice<'_>
qual
&[u8]