#![allow(unused_imports)]
use zerocopy::IntoBytes;
#[repr(u8)]
#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
pub enum Color {
Red = 0,
Orange = 1,
Yellow = 2,
Green = 3,
Blue = 4,
Indigo = 5,
Violet = 6,
}
#[repr(u8)]
#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
pub enum Uint8Limits {
Min = 0,
Max = 0b11111111,
}
#[repr(u16)]
#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
pub enum Uint16Limits {
Min = 0,
Max = 0xffff,
}
#[repr(u32)]
#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
pub enum Uint32Limits {
Min = 0,
Max = 0xffffffff,
}
#[repr(u64)]
#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
pub enum Uint64Limits {
Min = 0,
Max = 0xffffffffffffffff,
}
#[repr(i8)]
#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
pub enum Int8Limits {
Min = -0x80,
Max = 0x7f,
}
#[repr(i16)]
#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
pub enum Int16Limits {
Min = -0x8000,
Max = 0x7fff,
}
#[repr(i32)]
#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
pub enum Int32Limits {
Min = -0x80000000,
Max = 0x7fffffff,
}
#[repr(i64)]
#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
pub enum Int64Limits {
Min = -0x8000000000000000,
Max = 0x7fffffffffffffff,
}
pub const FOUR: u16 = 0b100;
#[repr(u16)]
#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
pub enum EnumWithExpressions {
OrWithLiteral = 3, OrWithConstant = 5, }
#[repr(u8)]
#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
pub enum EnumWithOneLineComment {
MemberWithOneLineComment = 0,
MemberWithManyLineComment = 1,
}
#[repr(u16)]
#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
pub enum EnumWithManyLineComment {
Member = 0,
}
pub const RED: Color = Color::Red;
pub const UINT8_MIN: Uint8Limits = Uint8Limits::Min;
pub const UINT8_MAX: Uint8Limits = Uint8Limits::Max;
pub const UINT16_MIN: Uint16Limits = Uint16Limits::Min;
pub const UINT16_MAX: Uint16Limits = Uint16Limits::Max;
pub const UINT32_MIN: Uint32Limits = Uint32Limits::Min;
pub const UINT32_MAX: Uint32Limits = Uint32Limits::Max;
pub const UINT64_MIN: Uint64Limits = Uint64Limits::Min;
pub const UINT64_MAX: Uint64Limits = Uint64Limits::Max;
pub const INT8_MIN: Int8Limits = Int8Limits::Min;
pub const INT8_MAX: Int8Limits = Int8Limits::Max;
pub const INT16_MIN: Int16Limits = Int16Limits::Min;
pub const INT16_MAX: Int16Limits = Int16Limits::Max;
pub const INT32_MIN: Int32Limits = Int32Limits::Min;
pub const INT32_MAX: Int32Limits = Int32Limits::Max;
pub const INT64_MIN: Int64Limits = Int64Limits::Min;
pub const INT64_MAX: Int64Limits = Int64Limits::Max;