55
66
77#[ repr( C ) ]
8+ #[ derive( Copy ) ]
89pub struct TErrorResult {
910 pub mResult : :: std:: os:: raw:: c_int ,
1011 pub __bindgen_anon_1 : TErrorResult__bindgen_ty_1 ,
@@ -15,49 +16,103 @@ pub const TErrorResult_UnionState_HasException: TErrorResult_UnionState =
1516 TErrorResult_UnionState :: HasMessage ;
1617#[ repr( i32 ) ]
1718#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
18- pub enum TErrorResult_UnionState { HasMessage = 0 , }
19+ pub enum TErrorResult_UnionState {
20+ HasMessage = 0 ,
21+ }
1922#[ repr( C ) ]
20- #[ derive( Debug , Default , Copy , Clone , Hash , PartialEq , Eq ) ]
23+ #[ derive( Debug , Copy , Clone ) ]
2124pub struct TErrorResult_Message {
22- pub _address : u8 ,
25+ _unused : [ u8 ; 0 ] ,
2326}
2427#[ repr( C ) ]
25- #[ derive( Debug , Default , Copy , Clone , Hash , PartialEq , Eq ) ]
28+ #[ derive( Debug , Copy , Clone ) ]
2629pub struct TErrorResult_DOMExceptionInfo {
27- pub _address : u8 ,
30+ _unused : [ u8 ; 0 ] ,
2831}
2932#[ repr( C ) ]
33+ #[ derive( Copy ) ]
3034pub union TErrorResult__bindgen_ty_1 {
3135 pub mMessage : * mut TErrorResult_Message ,
3236 pub mDOMExceptionInfo : * mut TErrorResult_DOMExceptionInfo ,
3337 _bindgen_union_align : u64 ,
3438}
39+ #[ test]
40+ fn bindgen_test_layout_TErrorResult__bindgen_ty_1 ( ) {
41+ assert_eq ! (
42+ :: std:: mem:: size_of:: <TErrorResult__bindgen_ty_1 >( ) ,
43+ 8usize ,
44+ concat!( "Size of: " , stringify!( TErrorResult__bindgen_ty_1 ) )
45+ ) ;
46+ assert_eq ! (
47+ :: std:: mem:: align_of:: <TErrorResult__bindgen_ty_1 >( ) ,
48+ 8usize ,
49+ concat!( "Alignment of " , stringify!( TErrorResult__bindgen_ty_1 ) )
50+ ) ;
51+ }
52+ impl Clone for TErrorResult__bindgen_ty_1 {
53+ fn clone ( & self ) -> Self {
54+ * self
55+ }
56+ }
3557impl Default for TErrorResult__bindgen_ty_1 {
36- fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
58+ fn default ( ) -> Self {
59+ unsafe { :: std:: mem:: zeroed ( ) }
60+ }
61+ }
62+ impl Clone for TErrorResult {
63+ fn clone ( & self ) -> Self {
64+ * self
65+ }
3766}
3867impl Default for TErrorResult {
39- fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
68+ fn default ( ) -> Self {
69+ unsafe { :: std:: mem:: zeroed ( ) }
70+ }
4071}
4172#[ repr( C ) ]
73+ #[ derive( Copy ) ]
4274pub struct ErrorResult {
4375 pub _base : TErrorResult ,
4476}
4577#[ test]
4678fn bindgen_test_layout_ErrorResult ( ) {
47- assert_eq ! ( :: std:: mem:: size_of:: <ErrorResult >( ) , 24usize , concat ! (
48- "Size of: " , stringify ! ( ErrorResult ) ) ) ;
49- assert_eq ! ( :: std:: mem:: align_of:: <ErrorResult >( ) , 8usize , concat ! (
50- "Alignment of " , stringify ! ( ErrorResult ) ) ) ;
79+ assert_eq ! (
80+ :: std:: mem:: size_of:: <ErrorResult >( ) ,
81+ 24usize ,
82+ concat!( "Size of: " , stringify!( ErrorResult ) )
83+ ) ;
84+ assert_eq ! (
85+ :: std:: mem:: align_of:: <ErrorResult >( ) ,
86+ 8usize ,
87+ concat!( "Alignment of " , stringify!( ErrorResult ) )
88+ ) ;
89+ }
90+ impl Clone for ErrorResult {
91+ fn clone ( & self ) -> Self {
92+ * self
93+ }
5194}
5295impl Default for ErrorResult {
53- fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
96+ fn default ( ) -> Self {
97+ unsafe { :: std:: mem:: zeroed ( ) }
98+ }
5499}
55100#[ test]
56101fn __bindgen_test_layout_TErrorResult_open0_int_close0_instantiation ( ) {
57- assert_eq ! ( :: std:: mem:: size_of:: <TErrorResult >( ) , 24usize , concat ! (
58- "Size of template specialization: " , stringify ! (
59- TErrorResult ) ) ) ;
60- assert_eq ! ( :: std:: mem:: align_of:: <TErrorResult >( ) , 8usize , concat ! (
61- "Alignment of template specialization: " , stringify ! (
62- TErrorResult ) ) ) ;
102+ assert_eq ! (
103+ :: std:: mem:: size_of:: <TErrorResult >( ) ,
104+ 24usize ,
105+ concat!(
106+ "Size of template specialization: " ,
107+ stringify!( TErrorResult )
108+ )
109+ ) ;
110+ assert_eq ! (
111+ :: std:: mem:: align_of:: <TErrorResult >( ) ,
112+ 8usize ,
113+ concat!(
114+ "Alignment of template specialization: " ,
115+ stringify!( TErrorResult )
116+ )
117+ ) ;
63118}
0 commit comments