@@ -16,6 +16,22 @@ impl ::std::ops::BitOr<Foo> for Foo {
16
16
#[ inline]
17
17
fn bitor ( self , other : Self ) -> Self { Foo ( self . 0 | other. 0 ) }
18
18
}
19
+ impl :: std:: ops:: BitOrAssign for Foo {
20
+ #[ inline]
21
+ fn bitor_assign ( & mut self , rhs : Foo ) { self . 0 |= rhs. 0 ; }
22
+ }
23
+ impl :: std:: ops:: BitAnd < Foo > for Foo {
24
+ type
25
+ Output
26
+ =
27
+ Self ;
28
+ #[ inline]
29
+ fn bitand ( self , other : Self ) -> Self { Foo ( self . 0 & other. 0 ) }
30
+ }
31
+ impl :: std:: ops:: BitAndAssign for Foo {
32
+ #[ inline]
33
+ fn bitand_assign ( & mut self , rhs : Foo ) { self . 0 &= rhs. 0 ; }
34
+ }
19
35
#[ repr( C ) ]
20
36
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
21
37
pub struct Foo ( pub :: std:: os:: raw:: c_int ) ;
@@ -31,6 +47,22 @@ impl ::std::ops::BitOr<Buz> for Buz {
31
47
#[ inline]
32
48
fn bitor ( self , other : Self ) -> Self { Buz ( self . 0 | other. 0 ) }
33
49
}
50
+ impl :: std:: ops:: BitOrAssign for Buz {
51
+ #[ inline]
52
+ fn bitor_assign ( & mut self , rhs : Buz ) { self . 0 |= rhs. 0 ; }
53
+ }
54
+ impl :: std:: ops:: BitAnd < Buz > for Buz {
55
+ type
56
+ Output
57
+ =
58
+ Self ;
59
+ #[ inline]
60
+ fn bitand ( self , other : Self ) -> Self { Buz ( self . 0 & other. 0 ) }
61
+ }
62
+ impl :: std:: ops:: BitAndAssign for Buz {
63
+ #[ inline]
64
+ fn bitand_assign ( & mut self , rhs : Buz ) { self . 0 &= rhs. 0 ; }
65
+ }
34
66
#[ repr( C ) ]
35
67
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
36
68
pub struct Buz ( pub :: std:: os:: raw:: c_schar ) ;
@@ -44,6 +76,22 @@ impl ::std::ops::BitOr<_bindgen_ty_1> for _bindgen_ty_1 {
44
76
#[ inline]
45
77
fn bitor ( self , other : Self ) -> Self { _bindgen_ty_1 ( self . 0 | other. 0 ) }
46
78
}
79
+ impl :: std:: ops:: BitOrAssign for _bindgen_ty_1 {
80
+ #[ inline]
81
+ fn bitor_assign ( & mut self , rhs : _bindgen_ty_1 ) { self . 0 |= rhs. 0 ; }
82
+ }
83
+ impl :: std:: ops:: BitAnd < _bindgen_ty_1 > for _bindgen_ty_1 {
84
+ type
85
+ Output
86
+ =
87
+ Self ;
88
+ #[ inline]
89
+ fn bitand ( self , other : Self ) -> Self { _bindgen_ty_1 ( self . 0 & other. 0 ) }
90
+ }
91
+ impl :: std:: ops:: BitAndAssign for _bindgen_ty_1 {
92
+ #[ inline]
93
+ fn bitand_assign ( & mut self , rhs : _bindgen_ty_1 ) { self . 0 &= rhs. 0 ; }
94
+ }
47
95
#[ repr( C ) ]
48
96
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
49
97
pub struct _bindgen_ty_1 ( pub :: std:: os:: raw:: c_uint ) ;
@@ -64,6 +112,24 @@ impl ::std::ops::BitOr<Dummy__bindgen_ty_1> for Dummy__bindgen_ty_1 {
64
112
Dummy__bindgen_ty_1 ( self . 0 | other. 0 )
65
113
}
66
114
}
115
+ impl :: std:: ops:: BitOrAssign for Dummy__bindgen_ty_1 {
116
+ #[ inline]
117
+ fn bitor_assign ( & mut self , rhs : Dummy__bindgen_ty_1 ) { self . 0 |= rhs. 0 ; }
118
+ }
119
+ impl :: std:: ops:: BitAnd < Dummy__bindgen_ty_1 > for Dummy__bindgen_ty_1 {
120
+ type
121
+ Output
122
+ =
123
+ Self ;
124
+ #[ inline]
125
+ fn bitand ( self , other : Self ) -> Self {
126
+ Dummy__bindgen_ty_1 ( self . 0 & other. 0 )
127
+ }
128
+ }
129
+ impl :: std:: ops:: BitAndAssign for Dummy__bindgen_ty_1 {
130
+ #[ inline]
131
+ fn bitand_assign ( & mut self , rhs : Dummy__bindgen_ty_1 ) { self . 0 &= rhs. 0 ; }
132
+ }
67
133
#[ repr( C ) ]
68
134
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
69
135
pub struct Dummy__bindgen_ty_1 ( pub :: std:: os:: raw:: c_uint ) ;
0 commit comments