1 #![allow( 2 dead_code, 3 non_snake_case, 4 non_camel_case_types, 5 non_upper_case_globals 6 )] 7 8 #[repr(C)] 9 pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); 10 impl<T> __BindgenUnionField<T> { 11 #[inline] new() -> Self12 pub const fn new() -> Self { 13 __BindgenUnionField(::std::marker::PhantomData) 14 } 15 #[inline] as_ref(&self) -> &T16 pub unsafe fn as_ref(&self) -> &T { 17 ::std::mem::transmute(self) 18 } 19 #[inline] as_mut(&mut self) -> &mut T20 pub unsafe fn as_mut(&mut self) -> &mut T { 21 ::std::mem::transmute(self) 22 } 23 } 24 impl<T> ::std::default::Default for __BindgenUnionField<T> { 25 #[inline] default() -> Self26 fn default() -> Self { 27 Self::new() 28 } 29 } 30 impl<T> ::std::clone::Clone for __BindgenUnionField<T> { 31 #[inline] clone(&self) -> Self32 fn clone(&self) -> Self { 33 Self::new() 34 } 35 } 36 impl<T> ::std::marker::Copy for __BindgenUnionField<T> {} 37 impl<T> ::std::fmt::Debug for __BindgenUnionField<T> { fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result38 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { 39 fmt.write_str("__BindgenUnionField") 40 } 41 } 42 impl<T> ::std::hash::Hash for __BindgenUnionField<T> { hash<H: ::std::hash::Hasher>(&self, _state: &mut H)43 fn hash<H: ::std::hash::Hasher>(&self, _state: &mut H) {} 44 } 45 impl<T> ::std::cmp::PartialEq for __BindgenUnionField<T> { eq(&self, _other: &__BindgenUnionField<T>) -> bool46 fn eq(&self, _other: &__BindgenUnionField<T>) -> bool { 47 true 48 } 49 } 50 impl<T> ::std::cmp::Eq for __BindgenUnionField<T> {} 51 #[repr(C)] 52 #[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] 53 pub struct basic_string { 54 pub _address: u8, 55 } 56 pub type basic_string_size_type = ::std::os::raw::c_ulonglong; 57 pub type basic_string_value_type = ::std::os::raw::c_char; 58 pub type basic_string_pointer = *mut basic_string_value_type; 59 #[repr(C)] 60 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 61 pub struct basic_string___long { 62 pub __cap_: basic_string_size_type, 63 pub __size_: basic_string_size_type, 64 pub __data_: basic_string_pointer, 65 } 66 impl Default for basic_string___long { default() -> Self67 fn default() -> Self { 68 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); 69 unsafe { 70 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); 71 s.assume_init() 72 } 73 } 74 } 75 pub const basic_string___min_cap: basic_string__bindgen_ty_1 = 76 basic_string__bindgen_ty_1::__min_cap; 77 #[repr(i32)] 78 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 79 pub enum basic_string__bindgen_ty_1 { 80 __min_cap = 0, 81 } 82 #[repr(C)] 83 pub struct basic_string___short { 84 pub __bindgen_anon_1: basic_string___short__bindgen_ty_1, 85 pub __data_: *mut basic_string_value_type, 86 } 87 #[repr(C)] 88 pub union basic_string___short__bindgen_ty_1 { 89 pub __size_: ::std::os::raw::c_uchar, 90 pub __lx: basic_string_value_type, 91 } 92 impl Default for basic_string___short__bindgen_ty_1 { default() -> Self93 fn default() -> Self { 94 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); 95 unsafe { 96 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); 97 s.assume_init() 98 } 99 } 100 } 101 impl Default for basic_string___short { default() -> Self102 fn default() -> Self { 103 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); 104 unsafe { 105 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); 106 s.assume_init() 107 } 108 } 109 } 110 #[repr(C)] 111 #[repr(align(1))] 112 pub struct basic_string___ulx { 113 pub __lx: __BindgenUnionField<basic_string___long>, 114 pub __lxx: __BindgenUnionField<basic_string___short>, 115 pub bindgen_union_field: [u8; 0usize], 116 } 117 impl Default for basic_string___ulx { default() -> Self118 fn default() -> Self { 119 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); 120 unsafe { 121 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); 122 s.assume_init() 123 } 124 } 125 } 126 pub const basic_string___n_words: basic_string__bindgen_ty_2 = 127 basic_string__bindgen_ty_2::__n_words; 128 #[repr(i32)] 129 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 130 pub enum basic_string__bindgen_ty_2 { 131 __n_words = 0, 132 } 133 #[repr(C)] 134 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 135 pub struct basic_string___raw { 136 pub __words: *mut basic_string_size_type, 137 } 138 impl Default for basic_string___raw { default() -> Self139 fn default() -> Self { 140 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); 141 unsafe { 142 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); 143 s.assume_init() 144 } 145 } 146 } 147 #[repr(C)] 148 pub struct basic_string___rep { 149 pub __bindgen_anon_1: basic_string___rep__bindgen_ty_1, 150 } 151 #[repr(C)] 152 #[repr(align(1))] 153 pub struct basic_string___rep__bindgen_ty_1 { 154 pub __l: __BindgenUnionField<basic_string___long>, 155 pub __s: __BindgenUnionField<basic_string___short>, 156 pub __r: __BindgenUnionField<basic_string___raw>, 157 pub bindgen_union_field: [u8; 0usize], 158 } 159 impl Default for basic_string___rep__bindgen_ty_1 { default() -> Self160 fn default() -> Self { 161 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); 162 unsafe { 163 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); 164 s.assume_init() 165 } 166 } 167 } 168 impl Default for basic_string___rep { default() -> Self169 fn default() -> Self { 170 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); 171 unsafe { 172 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); 173 s.assume_init() 174 } 175 } 176 } 177