pub fn write(
        &mut self,
        id: &str,
        desc: Option<&str>,
        seq: TextSlice,
        qual: &[u8],
    ) -> io::Result<()> {
        try!(self.writer.write_all(b"@"));
        try!(self.writer.write_all(id.as_bytes()));
        if desc.is_some() {
            try!(self.writer.write_all(b" "));
            try!(self.writer.write_all(desc.unwrap().as_bytes()));
        }
        try!(self.writer.write_all(b"\n"));
        try!(self.writer.write_all(seq));
        try!(self.writer.write_all(b"\n+\n"));
        try!(self.writer.write_all(qual));
        try!(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<()> {
        try!(self.writer.write_all(b"@"));
        try!(self.writer.write_all(id.as_bytes()));
        if desc.is_some() {
            try!(self.writer.write_all(b" "));
            try!(self.writer.write_all(desc.unwrap().as_bytes()));
        }
        try!(self.writer.write_all(b"\n"));
        try!(self.writer.write_all(seq));
        try!(self.writer.write_all(b"\n+\n"));
        try!(self.writer.write_all(qual));
        try!(self.writer.write_all(b"\n"));
        Ok(())
    }
pub fn write ( & mut self , id : & str , desc : Option < & str > , seq : TextSlice , qual : & [ u8 ] , ) -> io :: Result < ( ) > { try ! ( self writer write_all ( b" " ) ) ; try ! ( self writer write_all ( id as_bytes ( ) ) ) ; if desc . is_some ( ) { try ! ( self writer write_all ( b" " ) ) ; try ! ( self writer write_all ( desc unwrap ( ) as_bytes ( ) ) ) ; } try ! ( self writer write_all ( b" \n " ) ) ; try ! ( self writer write_all ( seq ) ) ; try ! ( self writer write_all ( b" \n \n " ) ) ; try ! ( self writer write_all ( qual ) ) ; try ! ( 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]