Skip to main content

luaur_code_gen/enums/
function_stats_flags.rs

1#[allow(non_camel_case_types)]
2#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
3#[repr(i32)]
4pub enum FunctionStatsFlags {
5    FunctionStats_Enable = 1 << 0,
6    FunctionStats_BytecodeSummary = 1 << 1,
7}
8
9#[allow(non_upper_case_globals)]
10impl FunctionStatsFlags {
11    pub const FunctionStats_Enable: Self = Self::FunctionStats_Enable;
12    pub const FunctionStats_BytecodeSummary: Self = Self::FunctionStats_BytecodeSummary;
13}
14
15impl core::ops::BitOr for FunctionStatsFlags {
16    type Output = i32;
17
18    fn bitor(self, rhs: Self) -> Self::Output {
19        (self as i32) | (rhs as i32)
20    }
21}
22
23impl core::ops::BitOr<FunctionStatsFlags> for i32 {
24    type Output = i32;
25
26    fn bitor(self, rhs: FunctionStatsFlags) -> Self::Output {
27        self | (rhs as i32)
28    }
29}