pub fn score_cipher(cipher: &[u8]) -> f64 {
    let mut score = 0.0;

    for letter in cipher {
        let mut c = *letter as char;
        if c.is_ascii_alphabetic() {
            c = c.to_ascii_uppercase();
        }

        score += letter_score(c as u8);
    }

    score
}
/// score cipher is a helper function for problem 3/set1.
score cipher is a helper function for problem 3/set1.
score cipher is a helper function for problem 3 / set1 .
pub fn score_cipher(cipher: &[u8]) -> f64 {
    let mut score = 0.0;
    for letter in cipher {
        let mut c = *letter as char;
        if c.is_ascii_alphabetic() {
            c = c.to_ascii_uppercase();
        }
        score += letter_score(c as u8);
    }
    score
}
pub fn score_cipher ( cipher : & [ u8 ] ) -> f64 { let mut score = 0.0 ; for letter in cipher { let mut c = * letter as char ; if c . is_ascii_alphabetic ( ) { c = c . to_ascii_uppercase ( ) ; } score += letter_score ( c as u8 ) ; } score }
score cipher is a helper function for problem 3/set1.
score cipher is a helper function for problem 3 / set1 .
cipher
&[u8]