luaur_code_gen/enums/
ir_condition.rs1#[allow(non_camel_case_types)]
2#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
3#[repr(u8)]
4pub enum IrCondition {
5 Equal,
6 NotEqual,
7 Less,
8 NotLess,
9 LessEqual,
10 NotLessEqual,
11 Greater,
12 NotGreater,
13 GreaterEqual,
14 NotGreaterEqual,
15
16 UnsignedLess,
17 UnsignedLessEqual,
18 UnsignedGreater,
19 UnsignedGreaterEqual,
20
21 Count,
22}
23
24#[allow(non_upper_case_globals)]
25impl IrCondition {
26 pub const Equal: Self = Self::Equal;
27 pub const NotEqual: Self = Self::NotEqual;
28 pub const Less: Self = Self::Less;
29 pub const NotLess: Self = Self::NotLess;
30 pub const LessEqual: Self = Self::LessEqual;
31 pub const NotLessEqual: Self = Self::NotLessEqual;
32 pub const Greater: Self = Self::Greater;
33 pub const NotGreater: Self = Self::NotGreater;
34 pub const GreaterEqual: Self = Self::GreaterEqual;
35 pub const NotGreaterEqual: Self = Self::NotGreaterEqual;
36
37 pub const UnsignedLess: Self = Self::UnsignedLess;
38 pub const UnsignedLessEqual: Self = Self::UnsignedLessEqual;
39 pub const UnsignedGreater: Self = Self::UnsignedGreater;
40 pub const UnsignedGreaterEqual: Self = Self::UnsignedGreaterEqual;
41
42 pub const Count: Self = Self::Count;
43}