/// Create a new FastQ record from given attributes.
Create a new FastQ record from given attributes.
Create a new FastQ record from given attributes .
pub fn with_attrs(id: &str, desc: Option<&str>, seq: TextSlice, qual: &[u8]) -> Self {
        let desc = match desc {
            Some(desc) => Some(desc.to_owned()),
            _ => None,
        };
        Record {
            id: id.to_owned(),
            desc,
            seq: String::from_utf8(seq.to_vec()).unwrap(),
            qual: String::from_utf8(qual.to_vec()).unwrap(),
        }
    }
pub fn with_attrs ( id : & str , desc : Option < & str > , seq : TextSlice , qual : & [ u8 ] ) -> Self { let desc = match desc { Some ( desc ) => Some ( desc . to_owned ( ) ) , _ => None , } ; Record { id : id . to_owned ( ) , desc , seq : String :: from_utf8 ( seq . to_vec ( ) ) . unwrap ( ) , qual : String :: from_utf8 ( qual . to_vec ( ) ) . unwrap ( ) , } }
Create a new FastQ record from given attributes.
Create a new FastQ record from given attributes .
id
&str
desc
Option<&str>
seq
TextSlice
qual
&[u8]