/// Write a Fasta record with given id, optional description and sequence.
Write a Fasta record with given id, optional description and sequence.
Write a Fasta record with given id optional description and sequence .
pub fn write(&mut self, id: &str, desc: Option<&str>, seq: TextSlice<'_>) -> 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")?;
        Ok(())
    }
pub fn write ( & mut self , id : & str , desc : Option < & str > , seq : TextSlice < ' _ > ) -> 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 " ) ? ; Ok ( ( ) ) }
Write a Fasta record with given id, optional description and sequence.
Write a Fasta record with given id optional description and sequence .
&mut self
id
&str
desc
Option<&str>
seq
TextSlice<'_>