5 #[derive(PartialEq, Eq)]
6 pub struct StatVariant
{
11 #[derive(PartialEq, Eq)]
13 pub variant
: StatVariant
,
19 pub const TEST
: StatVariant
= StatVariant{id: 0, _priv: (),}
;
20 #[allow(non_upper_case_globals)]
21 pub const A
: Stat
= Stat
{
28 pub fn from_index(variant
: StatVariant
, index
: usize) -> Option
<Stat
> {
29 let stat
= Stat{variant, index, _priv: (),}
;
31 Stats
::A
=> Some(Stats
::A
),