blob: 8c70625e374465b05187e7a55d6f23fc4874cdfb [file] [log] [blame]
/* automatically generated by rust-bindgen */
#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)]
impl MyDupeEnum {
pub const A: MyDupeEnum = MyDupeEnum(0);
}
impl MyDupeEnum {
pub const A_alias: MyDupeEnum = MyDupeEnum(0);
}
impl MyDupeEnum {
pub const B: MyDupeEnum = MyDupeEnum(1);
}
impl ::std::ops::BitOr<MyDupeEnum> for MyDupeEnum {
type Output = Self;
#[inline]
fn bitor(self, other: Self) -> Self {
MyDupeEnum(self.0 | other.0)
}
}
impl ::std::ops::BitOrAssign for MyDupeEnum {
#[inline]
fn bitor_assign(&mut self, rhs: MyDupeEnum) {
self.0 |= rhs.0;
}
}
impl ::std::ops::BitAnd<MyDupeEnum> for MyDupeEnum {
type Output = Self;
#[inline]
fn bitand(self, other: Self) -> Self {
MyDupeEnum(self.0 & other.0)
}
}
impl ::std::ops::BitAndAssign for MyDupeEnum {
#[inline]
fn bitand_assign(&mut self, rhs: MyDupeEnum) {
self.0 &= rhs.0;
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub struct MyDupeEnum(pub u32);
impl MyOtherDupeEnum {
pub const C: MyOtherDupeEnum = MyOtherDupeEnum(0);
}
impl MyOtherDupeEnum {
pub const C_alias: MyOtherDupeEnum = MyOtherDupeEnum(0);
}
impl MyOtherDupeEnum {
pub const D: MyOtherDupeEnum = MyOtherDupeEnum(1);
}
impl ::std::ops::BitOr<MyOtherDupeEnum> for MyOtherDupeEnum {
type Output = Self;
#[inline]
fn bitor(self, other: Self) -> Self {
MyOtherDupeEnum(self.0 | other.0)
}
}
impl ::std::ops::BitOrAssign for MyOtherDupeEnum {
#[inline]
fn bitor_assign(&mut self, rhs: MyOtherDupeEnum) {
self.0 |= rhs.0;
}
}
impl ::std::ops::BitAnd<MyOtherDupeEnum> for MyOtherDupeEnum {
type Output = Self;
#[inline]
fn bitand(self, other: Self) -> Self {
MyOtherDupeEnum(self.0 & other.0)
}
}
impl ::std::ops::BitAndAssign for MyOtherDupeEnum {
#[inline]
fn bitand_assign(&mut self, rhs: MyOtherDupeEnum) {
self.0 &= rhs.0;
}
}
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub struct MyOtherDupeEnum(pub u32);