| #![allow( |
| dead_code, |
| non_snake_case, |
| non_camel_case_types, |
| non_upper_case_globals |
| )] |
| |
| #[repr(C)] |
| #[derive(Debug, Copy, Clone)] |
| pub struct foo { |
| pub member: foo__bindgen_ty_1, |
| } |
| pub const foo_FOO_A: foo__bindgen_ty_1 = foo__bindgen_ty_1(0); |
| pub const foo_FOO_B: foo__bindgen_ty_1 = foo__bindgen_ty_1(1); |
| impl ::std::ops::BitOr<foo__bindgen_ty_1> for foo__bindgen_ty_1 { |
| type Output = Self; |
| #[inline] |
| fn bitor(self, other: Self) -> Self { |
| foo__bindgen_ty_1(self.0 | other.0) |
| } |
| } |
| impl ::std::ops::BitOrAssign for foo__bindgen_ty_1 { |
| #[inline] |
| fn bitor_assign(&mut self, rhs: foo__bindgen_ty_1) { |
| self.0 |= rhs.0; |
| } |
| } |
| impl ::std::ops::BitAnd<foo__bindgen_ty_1> for foo__bindgen_ty_1 { |
| type Output = Self; |
| #[inline] |
| fn bitand(self, other: Self) -> Self { |
| foo__bindgen_ty_1(self.0 & other.0) |
| } |
| } |
| impl ::std::ops::BitAndAssign for foo__bindgen_ty_1 { |
| #[inline] |
| fn bitand_assign(&mut self, rhs: foo__bindgen_ty_1) { |
| self.0 &= rhs.0; |
| } |
| } |
| #[repr(transparent)] |
| #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] |
| pub struct foo__bindgen_ty_1(pub ::std::os::raw::c_uint); |
| #[test] |
| fn bindgen_test_layout_foo() { |
| assert_eq!( |
| ::std::mem::size_of::<foo>(), |
| 4usize, |
| concat!("Size of: ", stringify!(foo)) |
| ); |
| assert_eq!( |
| ::std::mem::align_of::<foo>(), |
| 4usize, |
| concat!("Alignment of ", stringify!(foo)) |
| ); |
| assert_eq!( |
| unsafe { &(*(::std::ptr::null::<foo>())).member as *const _ as usize }, |
| 0usize, |
| concat!( |
| "Offset of field: ", |
| stringify!(foo), |
| "::", |
| stringify!(member) |
| ) |
| ); |
| } |
| impl Default for foo { |
| fn default() -> Self { |
| let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); |
| unsafe { |
| ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); |
| s.assume_init() |
| } |
| } |
| } |
| impl Foo { |
| pub const Bar: Foo = Foo(0); |
| } |
| impl Foo { |
| pub const Qux: Foo = Foo(1); |
| } |
| impl ::std::ops::BitOr<Foo> for Foo { |
| type Output = Self; |
| #[inline] |
| fn bitor(self, other: Self) -> Self { |
| Foo(self.0 | other.0) |
| } |
| } |
| impl ::std::ops::BitOrAssign for Foo { |
| #[inline] |
| fn bitor_assign(&mut self, rhs: Foo) { |
| self.0 |= rhs.0; |
| } |
| } |
| impl ::std::ops::BitAnd<Foo> for Foo { |
| type Output = Self; |
| #[inline] |
| fn bitand(self, other: Self) -> Self { |
| Foo(self.0 & other.0) |
| } |
| } |
| impl ::std::ops::BitAndAssign for Foo { |
| #[inline] |
| fn bitand_assign(&mut self, rhs: Foo) { |
| self.0 &= rhs.0; |
| } |
| } |
| #[repr(transparent)] |
| #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] |
| pub struct Foo(pub ::std::os::raw::c_uint); |
| pub mod Neg { |
| pub type Type = ::std::os::raw::c_int; |
| pub const MinusOne: Type = -1; |
| pub const One: Type = 1; |
| } |
| impl NoDebug { |
| pub const NoDebug1: NoDebug = NoDebug(0); |
| } |
| impl NoDebug { |
| pub const NoDebug2: NoDebug = NoDebug(1); |
| } |
| impl ::std::ops::BitOr<NoDebug> for NoDebug { |
| type Output = Self; |
| #[inline] |
| fn bitor(self, other: Self) -> Self { |
| NoDebug(self.0 | other.0) |
| } |
| } |
| impl ::std::ops::BitOrAssign for NoDebug { |
| #[inline] |
| fn bitor_assign(&mut self, rhs: NoDebug) { |
| self.0 |= rhs.0; |
| } |
| } |
| impl ::std::ops::BitAnd<NoDebug> for NoDebug { |
| type Output = Self; |
| #[inline] |
| fn bitand(self, other: Self) -> Self { |
| NoDebug(self.0 & other.0) |
| } |
| } |
| impl ::std::ops::BitAndAssign for NoDebug { |
| #[inline] |
| fn bitand_assign(&mut self, rhs: NoDebug) { |
| self.0 &= rhs.0; |
| } |
| } |
| #[repr(transparent)] |
| /// <div rustbindgen nodebug></div> |
| #[derive(Copy, Clone, Hash, PartialEq, Eq)] |
| pub struct NoDebug(pub ::std::os::raw::c_uint); |
| impl Debug { |
| pub const Debug1: Debug = Debug(0); |
| } |
| impl Debug { |
| pub const Debug2: Debug = Debug(1); |
| } |
| impl ::std::ops::BitOr<Debug> for Debug { |
| type Output = Self; |
| #[inline] |
| fn bitor(self, other: Self) -> Self { |
| Debug(self.0 | other.0) |
| } |
| } |
| impl ::std::ops::BitOrAssign for Debug { |
| #[inline] |
| fn bitor_assign(&mut self, rhs: Debug) { |
| self.0 |= rhs.0; |
| } |
| } |
| impl ::std::ops::BitAnd<Debug> for Debug { |
| type Output = Self; |
| #[inline] |
| fn bitand(self, other: Self) -> Self { |
| Debug(self.0 & other.0) |
| } |
| } |
| impl ::std::ops::BitAndAssign for Debug { |
| #[inline] |
| fn bitand_assign(&mut self, rhs: Debug) { |
| self.0 &= rhs.0; |
| } |
| } |
| #[repr(transparent)] |
| /// <div rustbindgen derive="Debug"></div> |
| #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] |
| pub struct Debug(pub ::std::os::raw::c_uint); |