fn sanitize_id(id: &String) -> String {
        if id.len() == 0 {
            return String::new();
        }
        let mut id_copy = id.clone();
        if id_copy.chars().nth(0).expect("ID was empty") == '@' {
            id_copy.pop();
        }
        return id_copy;
    }
/// Read an identifier and return a cleaned version,
/// e.g., removing @ in a fastq identifier.
Read an identifier and return a cleaned version,
e.g., removing @ in a fastq identifier.
Read an identifier and return a cleaned version e . g . removing @ in a fastq identifier .
fn sanitize_id(id: &String) -> String {
        if id.len() == 0 {
            return String::new();
        }
        let mut id_copy = id.clone();
        if id_copy.chars().nth(0).expect("ID was empty") == '@' {
            id_copy.pop();
        }
        return id_copy;
    }
fn sanitize_id ( id : & String ) -> String { if id . len ( ) == 0 { return String :: new ( ) ; } let mut id_copy = id . clone ( ) ; if id_copy . chars ( ) . nth ( 0 ) . expect ( " " ) == '@' { id_copy . pop ( ) ; } return id_copy ; }
Read an identifier and return a cleaned version,
e.g., removing @ in a fastq identifier.
Read an identifier and return a cleaned version e . g . removing @ in a fastq identifier .
id
&String
id
&String