You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: eff.rs
    path of file: ./repos/genshin_artifact/mona_core/src/artifacts
    
    the code of the file until where you have to start completion: use crate::common::StatName;

pub struct ArtifactEff {
    pub atk: [f64; 4],
    pub atk_percentage: [f64; 4],
    pub def: [f64; 4],
    pub def_percentage: [f64; 4],
    pub hp: [f64; 4],
    pub hp_percentage: [f64; 4],
    pub critical_rate: [f64; 4],
    pub critical_damage: [f64; 4],
    pub recharge: [f64; 4],
    pub elemental_mastery: [f64; 4],
    pub healing_bonus: [f64; 4],
}

impl ArtifactEff {
    pub fn get_value(&self, stat: StatName, index: usize) -> f64 {
        use StatName::*;
        match
    
    pub fn get_value(&self, stat: StatName, index: usize) -> f64 {
        use StatName::*;
        match stat {
            ATKFixed => self.atk[index],
            ATKPercentage => self.atk_percentage[index],
            DEFFixed => self.def[index],
            DEFPercentage => self.def_percentage[index],
            HPFixed => self.hp[index],
            HPPercentage => self.hp_percentage[index],
            CriticalRate => self.critical_rate[index],
            CriticalDamage => self.critical_damage[index],
            Recharge => self.recharge[index],
            ElementalMastery => self.elemental_mastery[index],
            HealingBonus => self.healing_bonus[index],
            PhysicalBonus => self.def_percentage[index],
            _ => self.atk_percentage[index],
            // _ => unreachable!()
        }
    }