5
5
6
6
7
7
#[ repr( C ) ]
8
+ #[ derive( Copy ) ]
8
9
pub struct TErrorResult {
9
10
pub mResult : :: std:: os:: raw:: c_int ,
10
11
pub __bindgen_anon_1 : TErrorResult__bindgen_ty_1 ,
@@ -15,49 +16,103 @@ pub const TErrorResult_UnionState_HasException: TErrorResult_UnionState =
15
16
TErrorResult_UnionState :: HasMessage ;
16
17
#[ repr( i32 ) ]
17
18
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
18
- pub enum TErrorResult_UnionState { HasMessage = 0 , }
19
+ pub enum TErrorResult_UnionState {
20
+ HasMessage = 0 ,
21
+ }
19
22
#[ repr( C ) ]
20
- #[ derive( Debug , Default , Copy , Clone , Hash , PartialEq , Eq ) ]
23
+ #[ derive( Debug , Copy , Clone ) ]
21
24
pub struct TErrorResult_Message {
22
- pub _address : u8 ,
25
+ _unused : [ u8 ; 0 ] ,
23
26
}
24
27
#[ repr( C ) ]
25
- #[ derive( Debug , Default , Copy , Clone , Hash , PartialEq , Eq ) ]
28
+ #[ derive( Debug , Copy , Clone ) ]
26
29
pub struct TErrorResult_DOMExceptionInfo {
27
- pub _address : u8 ,
30
+ _unused : [ u8 ; 0 ] ,
28
31
}
29
32
#[ repr( C ) ]
33
+ #[ derive( Copy ) ]
30
34
pub union TErrorResult__bindgen_ty_1 {
31
35
pub mMessage : * mut TErrorResult_Message ,
32
36
pub mDOMExceptionInfo : * mut TErrorResult_DOMExceptionInfo ,
33
37
_bindgen_union_align : u64 ,
34
38
}
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
+ }
35
57
impl 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
+ }
37
66
}
38
67
impl Default for TErrorResult {
39
- fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
68
+ fn default ( ) -> Self {
69
+ unsafe { :: std:: mem:: zeroed ( ) }
70
+ }
40
71
}
41
72
#[ repr( C ) ]
73
+ #[ derive( Copy ) ]
42
74
pub struct ErrorResult {
43
75
pub _base : TErrorResult ,
44
76
}
45
77
#[ test]
46
78
fn 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
+ }
51
94
}
52
95
impl Default for ErrorResult {
53
- fn default ( ) -> Self { unsafe { :: std:: mem:: zeroed ( ) } }
96
+ fn default ( ) -> Self {
97
+ unsafe { :: std:: mem:: zeroed ( ) }
98
+ }
54
99
}
55
100
#[ test]
56
101
fn __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
+ ) ;
63
118
}
0 commit comments