|
| 1 | +/* automatically generated by rust-bindgen */ |
| 2 | + |
| 3 | +#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)] |
| 4 | + |
| 5 | +pub const MyDupeEnum_A: MyDupeEnum = MyDupeEnum(0); |
| 6 | +pub const MyDupeEnum_A_alias: MyDupeEnum = MyDupeEnum(0); |
| 7 | +pub const MyDupeEnum_B: MyDupeEnum = MyDupeEnum(1); |
| 8 | +impl ::std::ops::BitOr<MyDupeEnum> for MyDupeEnum { |
| 9 | + type Output = Self; |
| 10 | + #[inline] |
| 11 | + fn bitor(self, other: Self) -> Self { |
| 12 | + MyDupeEnum(self.0 | other.0) |
| 13 | + } |
| 14 | +} |
| 15 | +impl ::std::ops::BitOrAssign for MyDupeEnum { |
| 16 | + #[inline] |
| 17 | + fn bitor_assign(&mut self, rhs: MyDupeEnum) { |
| 18 | + self.0 |= rhs.0; |
| 19 | + } |
| 20 | +} |
| 21 | +impl ::std::ops::BitAnd<MyDupeEnum> for MyDupeEnum { |
| 22 | + type Output = Self; |
| 23 | + #[inline] |
| 24 | + fn bitand(self, other: Self) -> Self { |
| 25 | + MyDupeEnum(self.0 & other.0) |
| 26 | + } |
| 27 | +} |
| 28 | +impl ::std::ops::BitAndAssign for MyDupeEnum { |
| 29 | + #[inline] |
| 30 | + fn bitand_assign(&mut self, rhs: MyDupeEnum) { |
| 31 | + self.0 &= rhs.0; |
| 32 | + } |
| 33 | +} |
| 34 | +#[repr(C)] |
| 35 | +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] |
| 36 | +pub struct MyDupeEnum(pub u32); |
| 37 | +pub const MyOtherDupeEnum_C: MyOtherDupeEnum = MyOtherDupeEnum(0); |
| 38 | +pub const MyOtherDupeEnum_C_alias: MyOtherDupeEnum = MyOtherDupeEnum(0); |
| 39 | +pub const MyOtherDupeEnum_D: MyOtherDupeEnum = MyOtherDupeEnum(1); |
| 40 | +impl ::std::ops::BitOr<MyOtherDupeEnum> for MyOtherDupeEnum { |
| 41 | + type Output = Self; |
| 42 | + #[inline] |
| 43 | + fn bitor(self, other: Self) -> Self { |
| 44 | + MyOtherDupeEnum(self.0 | other.0) |
| 45 | + } |
| 46 | +} |
| 47 | +impl ::std::ops::BitOrAssign for MyOtherDupeEnum { |
| 48 | + #[inline] |
| 49 | + fn bitor_assign(&mut self, rhs: MyOtherDupeEnum) { |
| 50 | + self.0 |= rhs.0; |
| 51 | + } |
| 52 | +} |
| 53 | +impl ::std::ops::BitAnd<MyOtherDupeEnum> for MyOtherDupeEnum { |
| 54 | + type Output = Self; |
| 55 | + #[inline] |
| 56 | + fn bitand(self, other: Self) -> Self { |
| 57 | + MyOtherDupeEnum(self.0 & other.0) |
| 58 | + } |
| 59 | +} |
| 60 | +impl ::std::ops::BitAndAssign for MyOtherDupeEnum { |
| 61 | + #[inline] |
| 62 | + fn bitand_assign(&mut self, rhs: MyOtherDupeEnum) { |
| 63 | + self.0 &= rhs.0; |
| 64 | + } |
| 65 | +} |
| 66 | +#[repr(C)] |
| 67 | +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] |
| 68 | +pub struct MyOtherDupeEnum(pub u32); |
0 commit comments