#![allow( | |
dead_code, | |
non_snake_case, | |
non_camel_case_types, | |
non_upper_case_globals | |
)] | |
#[repr(u8)] | |
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
pub enum Foo { | |
Bar = 0, | |
Qux = 1, | |
} | |
#[repr(i8)] | |
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
pub enum Neg { | |
MinusOne = -1, | |
One = 1, | |
} | |
#[repr(u16)] | |
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] | |
pub enum Bigger { | |
Much = 255, | |
Larger = 256, | |
} |