Skip to content

Assignment 1: Fix `struct Statistics`

Current implementation

pub struct Statistics {
    protein: Protein,
}

does not make sense.

In the solution it is

struct Statistics {
    /// Statistics on amino acids
    amino_acid_counts: HashMap<AminoAcid, usize>,
    /// Read proteins
    proteins: Vec<Protein>,
}