clean_code/clean_code.rs
1use game_stat::prelude::*;
2
3// just a reminder that you can type alias
4// it's nice having to avoid Writing Stat<N> which can look a bit odd
5type GameStat = Stat<2>;
6
7fn main() {
8 let mut _armor_stat: GameStat = Stat::new(10f32);
9 let mut _attack_damage_stat: GameStat = Stat::new(10f32);
10}