1 2 3 4 5 6 7 8 9 10 11 12 13
use hashbrown::HashSet; #[derive(Debug,Clone,PartialEq)] pub struct EnumDefinition { pub kind: u64, pub variants: HashSet<u64>, } #[derive(Debug,Clone,PartialEq,PartialOrd,Serialize,Deserialize)] pub struct Enum { pub kind: u64, pub variant: u64, }