libyaml_sys/src-generated/
bindings.rs

1/* automatically generated by rust-bindgen */
2
3use libc::FILE;
4
5#[repr(C)]
6pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>);
7impl<T> __BindgenUnionField<T> {
8    #[inline]
9    pub const fn new() -> Self {
10        __BindgenUnionField(::std::marker::PhantomData)
11    }
12    #[inline]
13    pub unsafe fn as_ref(&self) -> &T {
14        ::std::mem::transmute(self)
15    }
16    #[inline]
17    pub unsafe fn as_mut(&mut self) -> &mut T {
18        ::std::mem::transmute(self)
19    }
20}
21impl<T> ::std::default::Default for __BindgenUnionField<T> {
22    #[inline]
23    fn default() -> Self {
24        Self::new()
25    }
26}
27impl<T> ::std::clone::Clone for __BindgenUnionField<T> {
28    #[inline]
29    fn clone(&self) -> Self {
30        Self::new()
31    }
32}
33impl<T> ::std::marker::Copy for __BindgenUnionField<T> {}
34impl<T> ::std::fmt::Debug for __BindgenUnionField<T> {
35    fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
36        fmt.write_str("__BindgenUnionField")
37    }
38}
39impl<T> ::std::hash::Hash for __BindgenUnionField<T> {
40    fn hash<H: ::std::hash::Hasher>(&self, _state: &mut H) {}
41}
42impl<T> ::std::cmp::PartialEq for __BindgenUnionField<T> {
43    fn eq(&self, _other: &__BindgenUnionField<T>) -> bool {
44        true
45    }
46}
47impl<T> ::std::cmp::Eq for __BindgenUnionField<T> {}
48extern "C" {
49    pub fn yaml_get_version_string() -> *const ::std::os::raw::c_char;
50}
51extern "C" {
52    pub fn yaml_get_version(
53        major: *mut ::std::os::raw::c_int,
54        minor: *mut ::std::os::raw::c_int,
55        patch: *mut ::std::os::raw::c_int,
56    );
57}
58pub type yaml_char_t = ::std::os::raw::c_uchar;
59#[repr(C)]
60#[derive(Debug, Copy, Clone)]
61pub struct yaml_version_directive_s {
62    pub major: ::std::os::raw::c_int,
63    pub minor: ::std::os::raw::c_int,
64}
65#[test]
66fn bindgen_test_layout_yaml_version_directive_s() {
67    assert_eq!(
68        ::std::mem::size_of::<yaml_version_directive_s>(),
69        8usize,
70        concat!("Size of: ", stringify!(yaml_version_directive_s))
71    );
72    assert_eq!(
73        ::std::mem::align_of::<yaml_version_directive_s>(),
74        4usize,
75        concat!("Alignment of ", stringify!(yaml_version_directive_s))
76    );
77    assert_eq!(
78        unsafe { &(*(::std::ptr::null::<yaml_version_directive_s>())).major as *const _ as usize },
79        0usize,
80        concat!(
81            "Offset of field: ",
82            stringify!(yaml_version_directive_s),
83            "::",
84            stringify!(major)
85        )
86    );
87    assert_eq!(
88        unsafe { &(*(::std::ptr::null::<yaml_version_directive_s>())).minor as *const _ as usize },
89        4usize,
90        concat!(
91            "Offset of field: ",
92            stringify!(yaml_version_directive_s),
93            "::",
94            stringify!(minor)
95        )
96    );
97}
98pub type yaml_version_directive_t = yaml_version_directive_s;
99#[repr(C)]
100#[derive(Debug, Copy, Clone)]
101pub struct yaml_tag_directive_s {
102    pub handle: *mut yaml_char_t,
103    pub prefix: *mut yaml_char_t,
104}
105#[test]
106fn bindgen_test_layout_yaml_tag_directive_s() {
107    assert_eq!(
108        ::std::mem::size_of::<yaml_tag_directive_s>(),
109        16usize,
110        concat!("Size of: ", stringify!(yaml_tag_directive_s))
111    );
112    assert_eq!(
113        ::std::mem::align_of::<yaml_tag_directive_s>(),
114        8usize,
115        concat!("Alignment of ", stringify!(yaml_tag_directive_s))
116    );
117    assert_eq!(
118        unsafe { &(*(::std::ptr::null::<yaml_tag_directive_s>())).handle as *const _ as usize },
119        0usize,
120        concat!(
121            "Offset of field: ",
122            stringify!(yaml_tag_directive_s),
123            "::",
124            stringify!(handle)
125        )
126    );
127    assert_eq!(
128        unsafe { &(*(::std::ptr::null::<yaml_tag_directive_s>())).prefix as *const _ as usize },
129        8usize,
130        concat!(
131            "Offset of field: ",
132            stringify!(yaml_tag_directive_s),
133            "::",
134            stringify!(prefix)
135        )
136    );
137}
138pub type yaml_tag_directive_t = yaml_tag_directive_s;
139pub const YAML_ANY_ENCODING: yaml_encoding_e = 0;
140pub const YAML_UTF8_ENCODING: yaml_encoding_e = 1;
141pub const YAML_UTF16LE_ENCODING: yaml_encoding_e = 2;
142pub const YAML_UTF16BE_ENCODING: yaml_encoding_e = 3;
143pub type yaml_encoding_e = i32;
144pub use self::yaml_encoding_e as yaml_encoding_t;
145pub const YAML_ANY_BREAK: yaml_break_e = 0;
146pub const YAML_CR_BREAK: yaml_break_e = 1;
147pub const YAML_LN_BREAK: yaml_break_e = 2;
148pub const YAML_CRLN_BREAK: yaml_break_e = 3;
149pub type yaml_break_e = i32;
150pub use self::yaml_break_e as yaml_break_t;
151pub const YAML_NO_ERROR: yaml_error_type_e = 0;
152pub const YAML_MEMORY_ERROR: yaml_error_type_e = 1;
153pub const YAML_READER_ERROR: yaml_error_type_e = 2;
154pub const YAML_SCANNER_ERROR: yaml_error_type_e = 3;
155pub const YAML_PARSER_ERROR: yaml_error_type_e = 4;
156pub const YAML_COMPOSER_ERROR: yaml_error_type_e = 5;
157pub const YAML_WRITER_ERROR: yaml_error_type_e = 6;
158pub const YAML_EMITTER_ERROR: yaml_error_type_e = 7;
159pub type yaml_error_type_e = i32;
160pub use self::yaml_error_type_e as yaml_error_type_t;
161#[repr(C)]
162pub struct yaml_mark_s {
163    pub index: usize,
164    pub line: usize,
165    pub column: usize,
166}
167#[test]
168fn bindgen_test_layout_yaml_mark_s() {
169    assert_eq!(
170        ::std::mem::size_of::<yaml_mark_s>(),
171        24usize,
172        concat!("Size of: ", stringify!(yaml_mark_s))
173    );
174    assert_eq!(
175        ::std::mem::align_of::<yaml_mark_s>(),
176        8usize,
177        concat!("Alignment of ", stringify!(yaml_mark_s))
178    );
179    assert_eq!(
180        unsafe { &(*(::std::ptr::null::<yaml_mark_s>())).index as *const _ as usize },
181        0usize,
182        concat!(
183            "Offset of field: ",
184            stringify!(yaml_mark_s),
185            "::",
186            stringify!(index)
187        )
188    );
189    assert_eq!(
190        unsafe { &(*(::std::ptr::null::<yaml_mark_s>())).line as *const _ as usize },
191        8usize,
192        concat!(
193            "Offset of field: ",
194            stringify!(yaml_mark_s),
195            "::",
196            stringify!(line)
197        )
198    );
199    assert_eq!(
200        unsafe { &(*(::std::ptr::null::<yaml_mark_s>())).column as *const _ as usize },
201        16usize,
202        concat!(
203            "Offset of field: ",
204            stringify!(yaml_mark_s),
205            "::",
206            stringify!(column)
207        )
208    );
209}
210pub type yaml_mark_t = yaml_mark_s;
211pub const YAML_ANY_SCALAR_STYLE: yaml_scalar_style_e = 0;
212pub const YAML_PLAIN_SCALAR_STYLE: yaml_scalar_style_e = 1;
213pub const YAML_SINGLE_QUOTED_SCALAR_STYLE: yaml_scalar_style_e = 2;
214pub const YAML_DOUBLE_QUOTED_SCALAR_STYLE: yaml_scalar_style_e = 3;
215pub const YAML_LITERAL_SCALAR_STYLE: yaml_scalar_style_e = 4;
216pub const YAML_FOLDED_SCALAR_STYLE: yaml_scalar_style_e = 5;
217pub type yaml_scalar_style_e = i32;
218pub use self::yaml_scalar_style_e as yaml_scalar_style_t;
219pub const YAML_ANY_SEQUENCE_STYLE: yaml_sequence_style_e = 0;
220pub const YAML_BLOCK_SEQUENCE_STYLE: yaml_sequence_style_e = 1;
221pub const YAML_FLOW_SEQUENCE_STYLE: yaml_sequence_style_e = 2;
222pub type yaml_sequence_style_e = i32;
223pub use self::yaml_sequence_style_e as yaml_sequence_style_t;
224pub const YAML_ANY_MAPPING_STYLE: yaml_mapping_style_e = 0;
225pub const YAML_BLOCK_MAPPING_STYLE: yaml_mapping_style_e = 1;
226pub const YAML_FLOW_MAPPING_STYLE: yaml_mapping_style_e = 2;
227pub type yaml_mapping_style_e = i32;
228pub use self::yaml_mapping_style_e as yaml_mapping_style_t;
229pub const YAML_NO_TOKEN: yaml_token_type_e = 0;
230pub const YAML_STREAM_START_TOKEN: yaml_token_type_e = 1;
231pub const YAML_STREAM_END_TOKEN: yaml_token_type_e = 2;
232pub const YAML_VERSION_DIRECTIVE_TOKEN: yaml_token_type_e = 3;
233pub const YAML_TAG_DIRECTIVE_TOKEN: yaml_token_type_e = 4;
234pub const YAML_DOCUMENT_START_TOKEN: yaml_token_type_e = 5;
235pub const YAML_DOCUMENT_END_TOKEN: yaml_token_type_e = 6;
236pub const YAML_BLOCK_SEQUENCE_START_TOKEN: yaml_token_type_e = 7;
237pub const YAML_BLOCK_MAPPING_START_TOKEN: yaml_token_type_e = 8;
238pub const YAML_BLOCK_END_TOKEN: yaml_token_type_e = 9;
239pub const YAML_FLOW_SEQUENCE_START_TOKEN: yaml_token_type_e = 10;
240pub const YAML_FLOW_SEQUENCE_END_TOKEN: yaml_token_type_e = 11;
241pub const YAML_FLOW_MAPPING_START_TOKEN: yaml_token_type_e = 12;
242pub const YAML_FLOW_MAPPING_END_TOKEN: yaml_token_type_e = 13;
243pub const YAML_BLOCK_ENTRY_TOKEN: yaml_token_type_e = 14;
244pub const YAML_FLOW_ENTRY_TOKEN: yaml_token_type_e = 15;
245pub const YAML_KEY_TOKEN: yaml_token_type_e = 16;
246pub const YAML_VALUE_TOKEN: yaml_token_type_e = 17;
247pub const YAML_ALIAS_TOKEN: yaml_token_type_e = 18;
248pub const YAML_ANCHOR_TOKEN: yaml_token_type_e = 19;
249pub const YAML_TAG_TOKEN: yaml_token_type_e = 20;
250pub const YAML_SCALAR_TOKEN: yaml_token_type_e = 21;
251pub type yaml_token_type_e = i32;
252pub use self::yaml_token_type_e as yaml_token_type_t;
253#[repr(C)]
254pub struct yaml_token_s {
255    pub type_: yaml_token_type_t,
256    pub data: yaml_token_s__bindgen_ty_1,
257    pub start_mark: yaml_mark_t,
258    pub end_mark: yaml_mark_t,
259}
260#[repr(C)]
261pub struct yaml_token_s__bindgen_ty_1 {
262    pub stream_start: __BindgenUnionField<yaml_token_s__bindgen_ty_1__bindgen_ty_1>,
263    pub alias: __BindgenUnionField<yaml_token_s__bindgen_ty_1__bindgen_ty_2>,
264    pub anchor: __BindgenUnionField<yaml_token_s__bindgen_ty_1__bindgen_ty_3>,
265    pub tag: __BindgenUnionField<yaml_token_s__bindgen_ty_1__bindgen_ty_4>,
266    pub scalar: __BindgenUnionField<yaml_token_s__bindgen_ty_1__bindgen_ty_5>,
267    pub version_directive: __BindgenUnionField<yaml_token_s__bindgen_ty_1__bindgen_ty_6>,
268    pub tag_directive: __BindgenUnionField<yaml_token_s__bindgen_ty_1__bindgen_ty_7>,
269    pub bindgen_union_field: [u64; 3usize],
270}
271#[repr(C)]
272#[derive(Debug, Copy, Clone)]
273pub struct yaml_token_s__bindgen_ty_1__bindgen_ty_1 {
274    pub encoding: yaml_encoding_t,
275}
276#[test]
277fn bindgen_test_layout_yaml_token_s__bindgen_ty_1__bindgen_ty_1() {
278    assert_eq!(
279        ::std::mem::size_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_1>(),
280        4usize,
281        concat!(
282            "Size of: ",
283            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_1)
284        )
285    );
286    assert_eq!(
287        ::std::mem::align_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_1>(),
288        4usize,
289        concat!(
290            "Alignment of ",
291            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_1)
292        )
293    );
294    assert_eq!(
295        unsafe {
296            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1__bindgen_ty_1>())).encoding
297                as *const _ as usize
298        },
299        0usize,
300        concat!(
301            "Offset of field: ",
302            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_1),
303            "::",
304            stringify!(encoding)
305        )
306    );
307}
308#[repr(C)]
309#[derive(Debug, Copy, Clone)]
310pub struct yaml_token_s__bindgen_ty_1__bindgen_ty_2 {
311    pub value: *mut yaml_char_t,
312}
313#[test]
314fn bindgen_test_layout_yaml_token_s__bindgen_ty_1__bindgen_ty_2() {
315    assert_eq!(
316        ::std::mem::size_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_2>(),
317        8usize,
318        concat!(
319            "Size of: ",
320            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_2)
321        )
322    );
323    assert_eq!(
324        ::std::mem::align_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_2>(),
325        8usize,
326        concat!(
327            "Alignment of ",
328            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_2)
329        )
330    );
331    assert_eq!(
332        unsafe {
333            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1__bindgen_ty_2>())).value as *const _
334                as usize
335        },
336        0usize,
337        concat!(
338            "Offset of field: ",
339            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_2),
340            "::",
341            stringify!(value)
342        )
343    );
344}
345#[repr(C)]
346#[derive(Debug, Copy, Clone)]
347pub struct yaml_token_s__bindgen_ty_1__bindgen_ty_3 {
348    pub value: *mut yaml_char_t,
349}
350#[test]
351fn bindgen_test_layout_yaml_token_s__bindgen_ty_1__bindgen_ty_3() {
352    assert_eq!(
353        ::std::mem::size_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_3>(),
354        8usize,
355        concat!(
356            "Size of: ",
357            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_3)
358        )
359    );
360    assert_eq!(
361        ::std::mem::align_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_3>(),
362        8usize,
363        concat!(
364            "Alignment of ",
365            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_3)
366        )
367    );
368    assert_eq!(
369        unsafe {
370            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1__bindgen_ty_3>())).value as *const _
371                as usize
372        },
373        0usize,
374        concat!(
375            "Offset of field: ",
376            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_3),
377            "::",
378            stringify!(value)
379        )
380    );
381}
382#[repr(C)]
383#[derive(Debug, Copy, Clone)]
384pub struct yaml_token_s__bindgen_ty_1__bindgen_ty_4 {
385    pub handle: *mut yaml_char_t,
386    pub suffix: *mut yaml_char_t,
387}
388#[test]
389fn bindgen_test_layout_yaml_token_s__bindgen_ty_1__bindgen_ty_4() {
390    assert_eq!(
391        ::std::mem::size_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_4>(),
392        16usize,
393        concat!(
394            "Size of: ",
395            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_4)
396        )
397    );
398    assert_eq!(
399        ::std::mem::align_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_4>(),
400        8usize,
401        concat!(
402            "Alignment of ",
403            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_4)
404        )
405    );
406    assert_eq!(
407        unsafe {
408            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1__bindgen_ty_4>())).handle as *const _
409                as usize
410        },
411        0usize,
412        concat!(
413            "Offset of field: ",
414            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_4),
415            "::",
416            stringify!(handle)
417        )
418    );
419    assert_eq!(
420        unsafe {
421            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1__bindgen_ty_4>())).suffix as *const _
422                as usize
423        },
424        8usize,
425        concat!(
426            "Offset of field: ",
427            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_4),
428            "::",
429            stringify!(suffix)
430        )
431    );
432}
433#[repr(C)]
434pub struct yaml_token_s__bindgen_ty_1__bindgen_ty_5 {
435    pub value: *mut yaml_char_t,
436    pub length: usize,
437    pub style: yaml_scalar_style_t,
438}
439#[test]
440fn bindgen_test_layout_yaml_token_s__bindgen_ty_1__bindgen_ty_5() {
441    assert_eq!(
442        ::std::mem::size_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_5>(),
443        24usize,
444        concat!(
445            "Size of: ",
446            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_5)
447        )
448    );
449    assert_eq!(
450        ::std::mem::align_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_5>(),
451        8usize,
452        concat!(
453            "Alignment of ",
454            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_5)
455        )
456    );
457    assert_eq!(
458        unsafe {
459            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1__bindgen_ty_5>())).value as *const _
460                as usize
461        },
462        0usize,
463        concat!(
464            "Offset of field: ",
465            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_5),
466            "::",
467            stringify!(value)
468        )
469    );
470    assert_eq!(
471        unsafe {
472            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1__bindgen_ty_5>())).length as *const _
473                as usize
474        },
475        8usize,
476        concat!(
477            "Offset of field: ",
478            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_5),
479            "::",
480            stringify!(length)
481        )
482    );
483    assert_eq!(
484        unsafe {
485            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1__bindgen_ty_5>())).style as *const _
486                as usize
487        },
488        16usize,
489        concat!(
490            "Offset of field: ",
491            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_5),
492            "::",
493            stringify!(style)
494        )
495    );
496}
497#[repr(C)]
498#[derive(Debug, Copy, Clone)]
499pub struct yaml_token_s__bindgen_ty_1__bindgen_ty_6 {
500    pub major: ::std::os::raw::c_int,
501    pub minor: ::std::os::raw::c_int,
502}
503#[test]
504fn bindgen_test_layout_yaml_token_s__bindgen_ty_1__bindgen_ty_6() {
505    assert_eq!(
506        ::std::mem::size_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_6>(),
507        8usize,
508        concat!(
509            "Size of: ",
510            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_6)
511        )
512    );
513    assert_eq!(
514        ::std::mem::align_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_6>(),
515        4usize,
516        concat!(
517            "Alignment of ",
518            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_6)
519        )
520    );
521    assert_eq!(
522        unsafe {
523            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1__bindgen_ty_6>())).major as *const _
524                as usize
525        },
526        0usize,
527        concat!(
528            "Offset of field: ",
529            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_6),
530            "::",
531            stringify!(major)
532        )
533    );
534    assert_eq!(
535        unsafe {
536            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1__bindgen_ty_6>())).minor as *const _
537                as usize
538        },
539        4usize,
540        concat!(
541            "Offset of field: ",
542            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_6),
543            "::",
544            stringify!(minor)
545        )
546    );
547}
548#[repr(C)]
549#[derive(Debug, Copy, Clone)]
550pub struct yaml_token_s__bindgen_ty_1__bindgen_ty_7 {
551    pub handle: *mut yaml_char_t,
552    pub prefix: *mut yaml_char_t,
553}
554#[test]
555fn bindgen_test_layout_yaml_token_s__bindgen_ty_1__bindgen_ty_7() {
556    assert_eq!(
557        ::std::mem::size_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_7>(),
558        16usize,
559        concat!(
560            "Size of: ",
561            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_7)
562        )
563    );
564    assert_eq!(
565        ::std::mem::align_of::<yaml_token_s__bindgen_ty_1__bindgen_ty_7>(),
566        8usize,
567        concat!(
568            "Alignment of ",
569            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_7)
570        )
571    );
572    assert_eq!(
573        unsafe {
574            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1__bindgen_ty_7>())).handle as *const _
575                as usize
576        },
577        0usize,
578        concat!(
579            "Offset of field: ",
580            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_7),
581            "::",
582            stringify!(handle)
583        )
584    );
585    assert_eq!(
586        unsafe {
587            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1__bindgen_ty_7>())).prefix as *const _
588                as usize
589        },
590        8usize,
591        concat!(
592            "Offset of field: ",
593            stringify!(yaml_token_s__bindgen_ty_1__bindgen_ty_7),
594            "::",
595            stringify!(prefix)
596        )
597    );
598}
599#[test]
600fn bindgen_test_layout_yaml_token_s__bindgen_ty_1() {
601    assert_eq!(
602        ::std::mem::size_of::<yaml_token_s__bindgen_ty_1>(),
603        24usize,
604        concat!("Size of: ", stringify!(yaml_token_s__bindgen_ty_1))
605    );
606    assert_eq!(
607        ::std::mem::align_of::<yaml_token_s__bindgen_ty_1>(),
608        8usize,
609        concat!("Alignment of ", stringify!(yaml_token_s__bindgen_ty_1))
610    );
611    assert_eq!(
612        unsafe {
613            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1>())).stream_start as *const _ as usize
614        },
615        0usize,
616        concat!(
617            "Offset of field: ",
618            stringify!(yaml_token_s__bindgen_ty_1),
619            "::",
620            stringify!(stream_start)
621        )
622    );
623    assert_eq!(
624        unsafe {
625            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1>())).alias as *const _ as usize
626        },
627        0usize,
628        concat!(
629            "Offset of field: ",
630            stringify!(yaml_token_s__bindgen_ty_1),
631            "::",
632            stringify!(alias)
633        )
634    );
635    assert_eq!(
636        unsafe {
637            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1>())).anchor as *const _ as usize
638        },
639        0usize,
640        concat!(
641            "Offset of field: ",
642            stringify!(yaml_token_s__bindgen_ty_1),
643            "::",
644            stringify!(anchor)
645        )
646    );
647    assert_eq!(
648        unsafe { &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1>())).tag as *const _ as usize },
649        0usize,
650        concat!(
651            "Offset of field: ",
652            stringify!(yaml_token_s__bindgen_ty_1),
653            "::",
654            stringify!(tag)
655        )
656    );
657    assert_eq!(
658        unsafe {
659            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1>())).scalar as *const _ as usize
660        },
661        0usize,
662        concat!(
663            "Offset of field: ",
664            stringify!(yaml_token_s__bindgen_ty_1),
665            "::",
666            stringify!(scalar)
667        )
668    );
669    assert_eq!(
670        unsafe {
671            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1>())).version_directive as *const _
672                as usize
673        },
674        0usize,
675        concat!(
676            "Offset of field: ",
677            stringify!(yaml_token_s__bindgen_ty_1),
678            "::",
679            stringify!(version_directive)
680        )
681    );
682    assert_eq!(
683        unsafe {
684            &(*(::std::ptr::null::<yaml_token_s__bindgen_ty_1>())).tag_directive as *const _
685                as usize
686        },
687        0usize,
688        concat!(
689            "Offset of field: ",
690            stringify!(yaml_token_s__bindgen_ty_1),
691            "::",
692            stringify!(tag_directive)
693        )
694    );
695}
696#[test]
697fn bindgen_test_layout_yaml_token_s() {
698    assert_eq!(
699        ::std::mem::size_of::<yaml_token_s>(),
700        80usize,
701        concat!("Size of: ", stringify!(yaml_token_s))
702    );
703    assert_eq!(
704        ::std::mem::align_of::<yaml_token_s>(),
705        8usize,
706        concat!("Alignment of ", stringify!(yaml_token_s))
707    );
708    assert_eq!(
709        unsafe { &(*(::std::ptr::null::<yaml_token_s>())).type_ as *const _ as usize },
710        0usize,
711        concat!(
712            "Offset of field: ",
713            stringify!(yaml_token_s),
714            "::",
715            stringify!(type_)
716        )
717    );
718    assert_eq!(
719        unsafe { &(*(::std::ptr::null::<yaml_token_s>())).data as *const _ as usize },
720        8usize,
721        concat!(
722            "Offset of field: ",
723            stringify!(yaml_token_s),
724            "::",
725            stringify!(data)
726        )
727    );
728    assert_eq!(
729        unsafe { &(*(::std::ptr::null::<yaml_token_s>())).start_mark as *const _ as usize },
730        32usize,
731        concat!(
732            "Offset of field: ",
733            stringify!(yaml_token_s),
734            "::",
735            stringify!(start_mark)
736        )
737    );
738    assert_eq!(
739        unsafe { &(*(::std::ptr::null::<yaml_token_s>())).end_mark as *const _ as usize },
740        56usize,
741        concat!(
742            "Offset of field: ",
743            stringify!(yaml_token_s),
744            "::",
745            stringify!(end_mark)
746        )
747    );
748}
749pub type yaml_token_t = yaml_token_s;
750extern "C" {
751    pub fn yaml_token_delete(token: *mut yaml_token_t);
752}
753pub const YAML_NO_EVENT: yaml_event_type_e = 0;
754pub const YAML_STREAM_START_EVENT: yaml_event_type_e = 1;
755pub const YAML_STREAM_END_EVENT: yaml_event_type_e = 2;
756pub const YAML_DOCUMENT_START_EVENT: yaml_event_type_e = 3;
757pub const YAML_DOCUMENT_END_EVENT: yaml_event_type_e = 4;
758pub const YAML_ALIAS_EVENT: yaml_event_type_e = 5;
759pub const YAML_SCALAR_EVENT: yaml_event_type_e = 6;
760pub const YAML_SEQUENCE_START_EVENT: yaml_event_type_e = 7;
761pub const YAML_SEQUENCE_END_EVENT: yaml_event_type_e = 8;
762pub const YAML_MAPPING_START_EVENT: yaml_event_type_e = 9;
763pub const YAML_MAPPING_END_EVENT: yaml_event_type_e = 10;
764pub type yaml_event_type_e = i32;
765pub use self::yaml_event_type_e as yaml_event_type_t;
766#[repr(C)]
767pub struct yaml_event_s {
768    pub type_: yaml_event_type_t,
769    pub data: yaml_event_s__bindgen_ty_1,
770    pub start_mark: yaml_mark_t,
771    pub end_mark: yaml_mark_t,
772}
773#[repr(C)]
774pub struct yaml_event_s__bindgen_ty_1 {
775    pub stream_start: __BindgenUnionField<yaml_event_s__bindgen_ty_1__bindgen_ty_1>,
776    pub document_start: __BindgenUnionField<yaml_event_s__bindgen_ty_1__bindgen_ty_2>,
777    pub document_end: __BindgenUnionField<yaml_event_s__bindgen_ty_1__bindgen_ty_3>,
778    pub alias: __BindgenUnionField<yaml_event_s__bindgen_ty_1__bindgen_ty_4>,
779    pub scalar: __BindgenUnionField<yaml_event_s__bindgen_ty_1__bindgen_ty_5>,
780    pub sequence_start: __BindgenUnionField<yaml_event_s__bindgen_ty_1__bindgen_ty_6>,
781    pub mapping_start: __BindgenUnionField<yaml_event_s__bindgen_ty_1__bindgen_ty_7>,
782    pub bindgen_union_field: [u64; 6usize],
783}
784#[repr(C)]
785#[derive(Debug, Copy, Clone)]
786pub struct yaml_event_s__bindgen_ty_1__bindgen_ty_1 {
787    pub encoding: yaml_encoding_t,
788}
789#[test]
790fn bindgen_test_layout_yaml_event_s__bindgen_ty_1__bindgen_ty_1() {
791    assert_eq!(
792        ::std::mem::size_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_1>(),
793        4usize,
794        concat!(
795            "Size of: ",
796            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_1)
797        )
798    );
799    assert_eq!(
800        ::std::mem::align_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_1>(),
801        4usize,
802        concat!(
803            "Alignment of ",
804            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_1)
805        )
806    );
807    assert_eq!(
808        unsafe {
809            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_1>())).encoding
810                as *const _ as usize
811        },
812        0usize,
813        concat!(
814            "Offset of field: ",
815            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_1),
816            "::",
817            stringify!(encoding)
818        )
819    );
820}
821#[repr(C)]
822#[derive(Debug, Copy, Clone)]
823pub struct yaml_event_s__bindgen_ty_1__bindgen_ty_2 {
824    pub version_directive: *mut yaml_version_directive_t,
825    pub tag_directives: yaml_event_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
826    pub implicit: ::std::os::raw::c_int,
827}
828#[repr(C)]
829#[derive(Debug, Copy, Clone)]
830pub struct yaml_event_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {
831    pub start: *mut yaml_tag_directive_t,
832    pub end: *mut yaml_tag_directive_t,
833}
834#[test]
835fn bindgen_test_layout_yaml_event_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1() {
836    assert_eq!(
837        ::std::mem::size_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>(),
838        16usize,
839        concat!(
840            "Size of: ",
841            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1)
842        )
843    );
844    assert_eq!(
845        ::std::mem::align_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>(),
846        8usize,
847        concat!(
848            "Alignment of ",
849            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1)
850        )
851    );
852    assert_eq!(
853        unsafe {
854            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>())).start
855                as *const _ as usize
856        },
857        0usize,
858        concat!(
859            "Offset of field: ",
860            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1),
861            "::",
862            stringify!(start)
863        )
864    );
865    assert_eq!(
866        unsafe {
867            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>())).end
868                as *const _ as usize
869        },
870        8usize,
871        concat!(
872            "Offset of field: ",
873            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1),
874            "::",
875            stringify!(end)
876        )
877    );
878}
879#[test]
880fn bindgen_test_layout_yaml_event_s__bindgen_ty_1__bindgen_ty_2() {
881    assert_eq!(
882        ::std::mem::size_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_2>(),
883        32usize,
884        concat!(
885            "Size of: ",
886            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_2)
887        )
888    );
889    assert_eq!(
890        ::std::mem::align_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_2>(),
891        8usize,
892        concat!(
893            "Alignment of ",
894            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_2)
895        )
896    );
897    assert_eq!(
898        unsafe {
899            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_2>())).version_directive
900                as *const _ as usize
901        },
902        0usize,
903        concat!(
904            "Offset of field: ",
905            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_2),
906            "::",
907            stringify!(version_directive)
908        )
909    );
910    assert_eq!(
911        unsafe {
912            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_2>())).tag_directives
913                as *const _ as usize
914        },
915        8usize,
916        concat!(
917            "Offset of field: ",
918            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_2),
919            "::",
920            stringify!(tag_directives)
921        )
922    );
923    assert_eq!(
924        unsafe {
925            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_2>())).implicit
926                as *const _ as usize
927        },
928        24usize,
929        concat!(
930            "Offset of field: ",
931            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_2),
932            "::",
933            stringify!(implicit)
934        )
935    );
936}
937#[repr(C)]
938#[derive(Debug, Copy, Clone)]
939pub struct yaml_event_s__bindgen_ty_1__bindgen_ty_3 {
940    pub implicit: ::std::os::raw::c_int,
941}
942#[test]
943fn bindgen_test_layout_yaml_event_s__bindgen_ty_1__bindgen_ty_3() {
944    assert_eq!(
945        ::std::mem::size_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_3>(),
946        4usize,
947        concat!(
948            "Size of: ",
949            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_3)
950        )
951    );
952    assert_eq!(
953        ::std::mem::align_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_3>(),
954        4usize,
955        concat!(
956            "Alignment of ",
957            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_3)
958        )
959    );
960    assert_eq!(
961        unsafe {
962            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_3>())).implicit
963                as *const _ as usize
964        },
965        0usize,
966        concat!(
967            "Offset of field: ",
968            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_3),
969            "::",
970            stringify!(implicit)
971        )
972    );
973}
974#[repr(C)]
975#[derive(Debug, Copy, Clone)]
976pub struct yaml_event_s__bindgen_ty_1__bindgen_ty_4 {
977    pub anchor: *mut yaml_char_t,
978}
979#[test]
980fn bindgen_test_layout_yaml_event_s__bindgen_ty_1__bindgen_ty_4() {
981    assert_eq!(
982        ::std::mem::size_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_4>(),
983        8usize,
984        concat!(
985            "Size of: ",
986            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_4)
987        )
988    );
989    assert_eq!(
990        ::std::mem::align_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_4>(),
991        8usize,
992        concat!(
993            "Alignment of ",
994            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_4)
995        )
996    );
997    assert_eq!(
998        unsafe {
999            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_4>())).anchor as *const _
1000                as usize
1001        },
1002        0usize,
1003        concat!(
1004            "Offset of field: ",
1005            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_4),
1006            "::",
1007            stringify!(anchor)
1008        )
1009    );
1010}
1011#[repr(C)]
1012pub struct yaml_event_s__bindgen_ty_1__bindgen_ty_5 {
1013    pub anchor: *mut yaml_char_t,
1014    pub tag: *mut yaml_char_t,
1015    pub value: *mut yaml_char_t,
1016    pub length: usize,
1017    pub plain_implicit: ::std::os::raw::c_int,
1018    pub quoted_implicit: ::std::os::raw::c_int,
1019    pub style: yaml_scalar_style_t,
1020}
1021#[test]
1022fn bindgen_test_layout_yaml_event_s__bindgen_ty_1__bindgen_ty_5() {
1023    assert_eq!(
1024        ::std::mem::size_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_5>(),
1025        48usize,
1026        concat!(
1027            "Size of: ",
1028            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_5)
1029        )
1030    );
1031    assert_eq!(
1032        ::std::mem::align_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_5>(),
1033        8usize,
1034        concat!(
1035            "Alignment of ",
1036            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_5)
1037        )
1038    );
1039    assert_eq!(
1040        unsafe {
1041            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_5>())).anchor as *const _
1042                as usize
1043        },
1044        0usize,
1045        concat!(
1046            "Offset of field: ",
1047            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_5),
1048            "::",
1049            stringify!(anchor)
1050        )
1051    );
1052    assert_eq!(
1053        unsafe {
1054            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_5>())).tag as *const _
1055                as usize
1056        },
1057        8usize,
1058        concat!(
1059            "Offset of field: ",
1060            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_5),
1061            "::",
1062            stringify!(tag)
1063        )
1064    );
1065    assert_eq!(
1066        unsafe {
1067            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_5>())).value as *const _
1068                as usize
1069        },
1070        16usize,
1071        concat!(
1072            "Offset of field: ",
1073            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_5),
1074            "::",
1075            stringify!(value)
1076        )
1077    );
1078    assert_eq!(
1079        unsafe {
1080            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_5>())).length as *const _
1081                as usize
1082        },
1083        24usize,
1084        concat!(
1085            "Offset of field: ",
1086            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_5),
1087            "::",
1088            stringify!(length)
1089        )
1090    );
1091    assert_eq!(
1092        unsafe {
1093            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_5>())).plain_implicit
1094                as *const _ as usize
1095        },
1096        32usize,
1097        concat!(
1098            "Offset of field: ",
1099            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_5),
1100            "::",
1101            stringify!(plain_implicit)
1102        )
1103    );
1104    assert_eq!(
1105        unsafe {
1106            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_5>())).quoted_implicit
1107                as *const _ as usize
1108        },
1109        36usize,
1110        concat!(
1111            "Offset of field: ",
1112            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_5),
1113            "::",
1114            stringify!(quoted_implicit)
1115        )
1116    );
1117    assert_eq!(
1118        unsafe {
1119            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_5>())).style as *const _
1120                as usize
1121        },
1122        40usize,
1123        concat!(
1124            "Offset of field: ",
1125            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_5),
1126            "::",
1127            stringify!(style)
1128        )
1129    );
1130}
1131#[repr(C)]
1132#[derive(Debug, Copy, Clone)]
1133pub struct yaml_event_s__bindgen_ty_1__bindgen_ty_6 {
1134    pub anchor: *mut yaml_char_t,
1135    pub tag: *mut yaml_char_t,
1136    pub implicit: ::std::os::raw::c_int,
1137    pub style: yaml_sequence_style_t,
1138}
1139#[test]
1140fn bindgen_test_layout_yaml_event_s__bindgen_ty_1__bindgen_ty_6() {
1141    assert_eq!(
1142        ::std::mem::size_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_6>(),
1143        24usize,
1144        concat!(
1145            "Size of: ",
1146            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_6)
1147        )
1148    );
1149    assert_eq!(
1150        ::std::mem::align_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_6>(),
1151        8usize,
1152        concat!(
1153            "Alignment of ",
1154            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_6)
1155        )
1156    );
1157    assert_eq!(
1158        unsafe {
1159            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_6>())).anchor as *const _
1160                as usize
1161        },
1162        0usize,
1163        concat!(
1164            "Offset of field: ",
1165            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_6),
1166            "::",
1167            stringify!(anchor)
1168        )
1169    );
1170    assert_eq!(
1171        unsafe {
1172            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_6>())).tag as *const _
1173                as usize
1174        },
1175        8usize,
1176        concat!(
1177            "Offset of field: ",
1178            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_6),
1179            "::",
1180            stringify!(tag)
1181        )
1182    );
1183    assert_eq!(
1184        unsafe {
1185            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_6>())).implicit
1186                as *const _ as usize
1187        },
1188        16usize,
1189        concat!(
1190            "Offset of field: ",
1191            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_6),
1192            "::",
1193            stringify!(implicit)
1194        )
1195    );
1196    assert_eq!(
1197        unsafe {
1198            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_6>())).style as *const _
1199                as usize
1200        },
1201        20usize,
1202        concat!(
1203            "Offset of field: ",
1204            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_6),
1205            "::",
1206            stringify!(style)
1207        )
1208    );
1209}
1210#[repr(C)]
1211#[derive(Debug, Copy, Clone)]
1212pub struct yaml_event_s__bindgen_ty_1__bindgen_ty_7 {
1213    pub anchor: *mut yaml_char_t,
1214    pub tag: *mut yaml_char_t,
1215    pub implicit: ::std::os::raw::c_int,
1216    pub style: yaml_mapping_style_t,
1217}
1218#[test]
1219fn bindgen_test_layout_yaml_event_s__bindgen_ty_1__bindgen_ty_7() {
1220    assert_eq!(
1221        ::std::mem::size_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_7>(),
1222        24usize,
1223        concat!(
1224            "Size of: ",
1225            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_7)
1226        )
1227    );
1228    assert_eq!(
1229        ::std::mem::align_of::<yaml_event_s__bindgen_ty_1__bindgen_ty_7>(),
1230        8usize,
1231        concat!(
1232            "Alignment of ",
1233            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_7)
1234        )
1235    );
1236    assert_eq!(
1237        unsafe {
1238            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_7>())).anchor as *const _
1239                as usize
1240        },
1241        0usize,
1242        concat!(
1243            "Offset of field: ",
1244            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_7),
1245            "::",
1246            stringify!(anchor)
1247        )
1248    );
1249    assert_eq!(
1250        unsafe {
1251            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_7>())).tag as *const _
1252                as usize
1253        },
1254        8usize,
1255        concat!(
1256            "Offset of field: ",
1257            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_7),
1258            "::",
1259            stringify!(tag)
1260        )
1261    );
1262    assert_eq!(
1263        unsafe {
1264            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_7>())).implicit
1265                as *const _ as usize
1266        },
1267        16usize,
1268        concat!(
1269            "Offset of field: ",
1270            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_7),
1271            "::",
1272            stringify!(implicit)
1273        )
1274    );
1275    assert_eq!(
1276        unsafe {
1277            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1__bindgen_ty_7>())).style as *const _
1278                as usize
1279        },
1280        20usize,
1281        concat!(
1282            "Offset of field: ",
1283            stringify!(yaml_event_s__bindgen_ty_1__bindgen_ty_7),
1284            "::",
1285            stringify!(style)
1286        )
1287    );
1288}
1289#[test]
1290fn bindgen_test_layout_yaml_event_s__bindgen_ty_1() {
1291    assert_eq!(
1292        ::std::mem::size_of::<yaml_event_s__bindgen_ty_1>(),
1293        48usize,
1294        concat!("Size of: ", stringify!(yaml_event_s__bindgen_ty_1))
1295    );
1296    assert_eq!(
1297        ::std::mem::align_of::<yaml_event_s__bindgen_ty_1>(),
1298        8usize,
1299        concat!("Alignment of ", stringify!(yaml_event_s__bindgen_ty_1))
1300    );
1301    assert_eq!(
1302        unsafe {
1303            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1>())).stream_start as *const _ as usize
1304        },
1305        0usize,
1306        concat!(
1307            "Offset of field: ",
1308            stringify!(yaml_event_s__bindgen_ty_1),
1309            "::",
1310            stringify!(stream_start)
1311        )
1312    );
1313    assert_eq!(
1314        unsafe {
1315            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1>())).document_start as *const _
1316                as usize
1317        },
1318        0usize,
1319        concat!(
1320            "Offset of field: ",
1321            stringify!(yaml_event_s__bindgen_ty_1),
1322            "::",
1323            stringify!(document_start)
1324        )
1325    );
1326    assert_eq!(
1327        unsafe {
1328            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1>())).document_end as *const _ as usize
1329        },
1330        0usize,
1331        concat!(
1332            "Offset of field: ",
1333            stringify!(yaml_event_s__bindgen_ty_1),
1334            "::",
1335            stringify!(document_end)
1336        )
1337    );
1338    assert_eq!(
1339        unsafe {
1340            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1>())).alias as *const _ as usize
1341        },
1342        0usize,
1343        concat!(
1344            "Offset of field: ",
1345            stringify!(yaml_event_s__bindgen_ty_1),
1346            "::",
1347            stringify!(alias)
1348        )
1349    );
1350    assert_eq!(
1351        unsafe {
1352            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1>())).scalar as *const _ as usize
1353        },
1354        0usize,
1355        concat!(
1356            "Offset of field: ",
1357            stringify!(yaml_event_s__bindgen_ty_1),
1358            "::",
1359            stringify!(scalar)
1360        )
1361    );
1362    assert_eq!(
1363        unsafe {
1364            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1>())).sequence_start as *const _
1365                as usize
1366        },
1367        0usize,
1368        concat!(
1369            "Offset of field: ",
1370            stringify!(yaml_event_s__bindgen_ty_1),
1371            "::",
1372            stringify!(sequence_start)
1373        )
1374    );
1375    assert_eq!(
1376        unsafe {
1377            &(*(::std::ptr::null::<yaml_event_s__bindgen_ty_1>())).mapping_start as *const _
1378                as usize
1379        },
1380        0usize,
1381        concat!(
1382            "Offset of field: ",
1383            stringify!(yaml_event_s__bindgen_ty_1),
1384            "::",
1385            stringify!(mapping_start)
1386        )
1387    );
1388}
1389#[test]
1390fn bindgen_test_layout_yaml_event_s() {
1391    assert_eq!(
1392        ::std::mem::size_of::<yaml_event_s>(),
1393        104usize,
1394        concat!("Size of: ", stringify!(yaml_event_s))
1395    );
1396    assert_eq!(
1397        ::std::mem::align_of::<yaml_event_s>(),
1398        8usize,
1399        concat!("Alignment of ", stringify!(yaml_event_s))
1400    );
1401    assert_eq!(
1402        unsafe { &(*(::std::ptr::null::<yaml_event_s>())).type_ as *const _ as usize },
1403        0usize,
1404        concat!(
1405            "Offset of field: ",
1406            stringify!(yaml_event_s),
1407            "::",
1408            stringify!(type_)
1409        )
1410    );
1411    assert_eq!(
1412        unsafe { &(*(::std::ptr::null::<yaml_event_s>())).data as *const _ as usize },
1413        8usize,
1414        concat!(
1415            "Offset of field: ",
1416            stringify!(yaml_event_s),
1417            "::",
1418            stringify!(data)
1419        )
1420    );
1421    assert_eq!(
1422        unsafe { &(*(::std::ptr::null::<yaml_event_s>())).start_mark as *const _ as usize },
1423        56usize,
1424        concat!(
1425            "Offset of field: ",
1426            stringify!(yaml_event_s),
1427            "::",
1428            stringify!(start_mark)
1429        )
1430    );
1431    assert_eq!(
1432        unsafe { &(*(::std::ptr::null::<yaml_event_s>())).end_mark as *const _ as usize },
1433        80usize,
1434        concat!(
1435            "Offset of field: ",
1436            stringify!(yaml_event_s),
1437            "::",
1438            stringify!(end_mark)
1439        )
1440    );
1441}
1442pub type yaml_event_t = yaml_event_s;
1443extern "C" {
1444    pub fn yaml_stream_start_event_initialize(
1445        event: *mut yaml_event_t,
1446        encoding: yaml_encoding_t,
1447    ) -> ::std::os::raw::c_int;
1448}
1449extern "C" {
1450    pub fn yaml_stream_end_event_initialize(event: *mut yaml_event_t) -> ::std::os::raw::c_int;
1451}
1452extern "C" {
1453    pub fn yaml_document_start_event_initialize(
1454        event: *mut yaml_event_t,
1455        version_directive: *mut yaml_version_directive_t,
1456        tag_directives_start: *mut yaml_tag_directive_t,
1457        tag_directives_end: *mut yaml_tag_directive_t,
1458        implicit: ::std::os::raw::c_int,
1459    ) -> ::std::os::raw::c_int;
1460}
1461extern "C" {
1462    pub fn yaml_document_end_event_initialize(
1463        event: *mut yaml_event_t,
1464        implicit: ::std::os::raw::c_int,
1465    ) -> ::std::os::raw::c_int;
1466}
1467extern "C" {
1468    pub fn yaml_alias_event_initialize(
1469        event: *mut yaml_event_t,
1470        anchor: *mut yaml_char_t,
1471    ) -> ::std::os::raw::c_int;
1472}
1473extern "C" {
1474    pub fn yaml_scalar_event_initialize(
1475        event: *mut yaml_event_t,
1476        anchor: *mut yaml_char_t,
1477        tag: *mut yaml_char_t,
1478        value: *mut yaml_char_t,
1479        length: ::std::os::raw::c_int,
1480        plain_implicit: ::std::os::raw::c_int,
1481        quoted_implicit: ::std::os::raw::c_int,
1482        style: yaml_scalar_style_t,
1483    ) -> ::std::os::raw::c_int;
1484}
1485extern "C" {
1486    pub fn yaml_sequence_start_event_initialize(
1487        event: *mut yaml_event_t,
1488        anchor: *mut yaml_char_t,
1489        tag: *mut yaml_char_t,
1490        implicit: ::std::os::raw::c_int,
1491        style: yaml_sequence_style_t,
1492    ) -> ::std::os::raw::c_int;
1493}
1494extern "C" {
1495    pub fn yaml_sequence_end_event_initialize(event: *mut yaml_event_t) -> ::std::os::raw::c_int;
1496}
1497extern "C" {
1498    pub fn yaml_mapping_start_event_initialize(
1499        event: *mut yaml_event_t,
1500        anchor: *mut yaml_char_t,
1501        tag: *mut yaml_char_t,
1502        implicit: ::std::os::raw::c_int,
1503        style: yaml_mapping_style_t,
1504    ) -> ::std::os::raw::c_int;
1505}
1506extern "C" {
1507    pub fn yaml_mapping_end_event_initialize(event: *mut yaml_event_t) -> ::std::os::raw::c_int;
1508}
1509extern "C" {
1510    pub fn yaml_event_delete(event: *mut yaml_event_t);
1511}
1512pub const YAML_NO_NODE: yaml_node_type_e = 0;
1513pub const YAML_SCALAR_NODE: yaml_node_type_e = 1;
1514pub const YAML_SEQUENCE_NODE: yaml_node_type_e = 2;
1515pub const YAML_MAPPING_NODE: yaml_node_type_e = 3;
1516pub type yaml_node_type_e = i32;
1517pub use self::yaml_node_type_e as yaml_node_type_t;
1518pub type yaml_node_t = yaml_node_s;
1519pub type yaml_node_item_t = ::std::os::raw::c_int;
1520#[repr(C)]
1521#[derive(Debug, Copy, Clone)]
1522pub struct yaml_node_pair_s {
1523    pub key: ::std::os::raw::c_int,
1524    pub value: ::std::os::raw::c_int,
1525}
1526#[test]
1527fn bindgen_test_layout_yaml_node_pair_s() {
1528    assert_eq!(
1529        ::std::mem::size_of::<yaml_node_pair_s>(),
1530        8usize,
1531        concat!("Size of: ", stringify!(yaml_node_pair_s))
1532    );
1533    assert_eq!(
1534        ::std::mem::align_of::<yaml_node_pair_s>(),
1535        4usize,
1536        concat!("Alignment of ", stringify!(yaml_node_pair_s))
1537    );
1538    assert_eq!(
1539        unsafe { &(*(::std::ptr::null::<yaml_node_pair_s>())).key as *const _ as usize },
1540        0usize,
1541        concat!(
1542            "Offset of field: ",
1543            stringify!(yaml_node_pair_s),
1544            "::",
1545            stringify!(key)
1546        )
1547    );
1548    assert_eq!(
1549        unsafe { &(*(::std::ptr::null::<yaml_node_pair_s>())).value as *const _ as usize },
1550        4usize,
1551        concat!(
1552            "Offset of field: ",
1553            stringify!(yaml_node_pair_s),
1554            "::",
1555            stringify!(value)
1556        )
1557    );
1558}
1559pub type yaml_node_pair_t = yaml_node_pair_s;
1560#[repr(C)]
1561pub struct yaml_node_s {
1562    pub type_: yaml_node_type_t,
1563    pub tag: *mut yaml_char_t,
1564    pub data: yaml_node_s__bindgen_ty_1,
1565    pub start_mark: yaml_mark_t,
1566    pub end_mark: yaml_mark_t,
1567}
1568#[repr(C)]
1569pub struct yaml_node_s__bindgen_ty_1 {
1570    pub scalar: __BindgenUnionField<yaml_node_s__bindgen_ty_1__bindgen_ty_1>,
1571    pub sequence: __BindgenUnionField<yaml_node_s__bindgen_ty_1__bindgen_ty_2>,
1572    pub mapping: __BindgenUnionField<yaml_node_s__bindgen_ty_1__bindgen_ty_3>,
1573    pub bindgen_union_field: [u64; 4usize],
1574}
1575#[repr(C)]
1576pub struct yaml_node_s__bindgen_ty_1__bindgen_ty_1 {
1577    pub value: *mut yaml_char_t,
1578    pub length: usize,
1579    pub style: yaml_scalar_style_t,
1580}
1581#[test]
1582fn bindgen_test_layout_yaml_node_s__bindgen_ty_1__bindgen_ty_1() {
1583    assert_eq!(
1584        ::std::mem::size_of::<yaml_node_s__bindgen_ty_1__bindgen_ty_1>(),
1585        24usize,
1586        concat!(
1587            "Size of: ",
1588            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_1)
1589        )
1590    );
1591    assert_eq!(
1592        ::std::mem::align_of::<yaml_node_s__bindgen_ty_1__bindgen_ty_1>(),
1593        8usize,
1594        concat!(
1595            "Alignment of ",
1596            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_1)
1597        )
1598    );
1599    assert_eq!(
1600        unsafe {
1601            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_1>())).value as *const _
1602                as usize
1603        },
1604        0usize,
1605        concat!(
1606            "Offset of field: ",
1607            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_1),
1608            "::",
1609            stringify!(value)
1610        )
1611    );
1612    assert_eq!(
1613        unsafe {
1614            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_1>())).length as *const _
1615                as usize
1616        },
1617        8usize,
1618        concat!(
1619            "Offset of field: ",
1620            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_1),
1621            "::",
1622            stringify!(length)
1623        )
1624    );
1625    assert_eq!(
1626        unsafe {
1627            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_1>())).style as *const _
1628                as usize
1629        },
1630        16usize,
1631        concat!(
1632            "Offset of field: ",
1633            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_1),
1634            "::",
1635            stringify!(style)
1636        )
1637    );
1638}
1639#[repr(C)]
1640#[derive(Debug, Copy, Clone)]
1641pub struct yaml_node_s__bindgen_ty_1__bindgen_ty_2 {
1642    pub items: yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
1643    pub style: yaml_sequence_style_t,
1644}
1645#[repr(C)]
1646#[derive(Debug, Copy, Clone)]
1647pub struct yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {
1648    pub start: *mut yaml_node_item_t,
1649    pub end: *mut yaml_node_item_t,
1650    pub top: *mut yaml_node_item_t,
1651}
1652#[test]
1653fn bindgen_test_layout_yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1() {
1654    assert_eq!(
1655        ::std::mem::size_of::<yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>(),
1656        24usize,
1657        concat!(
1658            "Size of: ",
1659            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1)
1660        )
1661    );
1662    assert_eq!(
1663        ::std::mem::align_of::<yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>(),
1664        8usize,
1665        concat!(
1666            "Alignment of ",
1667            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1)
1668        )
1669    );
1670    assert_eq!(
1671        unsafe {
1672            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>())).start
1673                as *const _ as usize
1674        },
1675        0usize,
1676        concat!(
1677            "Offset of field: ",
1678            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1),
1679            "::",
1680            stringify!(start)
1681        )
1682    );
1683    assert_eq!(
1684        unsafe {
1685            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>())).end
1686                as *const _ as usize
1687        },
1688        8usize,
1689        concat!(
1690            "Offset of field: ",
1691            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1),
1692            "::",
1693            stringify!(end)
1694        )
1695    );
1696    assert_eq!(
1697        unsafe {
1698            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1>())).top
1699                as *const _ as usize
1700        },
1701        16usize,
1702        concat!(
1703            "Offset of field: ",
1704            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1),
1705            "::",
1706            stringify!(top)
1707        )
1708    );
1709}
1710#[test]
1711fn bindgen_test_layout_yaml_node_s__bindgen_ty_1__bindgen_ty_2() {
1712    assert_eq!(
1713        ::std::mem::size_of::<yaml_node_s__bindgen_ty_1__bindgen_ty_2>(),
1714        32usize,
1715        concat!(
1716            "Size of: ",
1717            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_2)
1718        )
1719    );
1720    assert_eq!(
1721        ::std::mem::align_of::<yaml_node_s__bindgen_ty_1__bindgen_ty_2>(),
1722        8usize,
1723        concat!(
1724            "Alignment of ",
1725            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_2)
1726        )
1727    );
1728    assert_eq!(
1729        unsafe {
1730            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_2>())).items as *const _
1731                as usize
1732        },
1733        0usize,
1734        concat!(
1735            "Offset of field: ",
1736            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_2),
1737            "::",
1738            stringify!(items)
1739        )
1740    );
1741    assert_eq!(
1742        unsafe {
1743            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_2>())).style as *const _
1744                as usize
1745        },
1746        24usize,
1747        concat!(
1748            "Offset of field: ",
1749            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_2),
1750            "::",
1751            stringify!(style)
1752        )
1753    );
1754}
1755#[repr(C)]
1756#[derive(Debug, Copy, Clone)]
1757pub struct yaml_node_s__bindgen_ty_1__bindgen_ty_3 {
1758    pub pairs: yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1,
1759    pub style: yaml_mapping_style_t,
1760}
1761#[repr(C)]
1762#[derive(Debug, Copy, Clone)]
1763pub struct yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1 {
1764    pub start: *mut yaml_node_pair_t,
1765    pub end: *mut yaml_node_pair_t,
1766    pub top: *mut yaml_node_pair_t,
1767}
1768#[test]
1769fn bindgen_test_layout_yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1() {
1770    assert_eq!(
1771        ::std::mem::size_of::<yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1>(),
1772        24usize,
1773        concat!(
1774            "Size of: ",
1775            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1)
1776        )
1777    );
1778    assert_eq!(
1779        ::std::mem::align_of::<yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1>(),
1780        8usize,
1781        concat!(
1782            "Alignment of ",
1783            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1)
1784        )
1785    );
1786    assert_eq!(
1787        unsafe {
1788            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1>())).start
1789                as *const _ as usize
1790        },
1791        0usize,
1792        concat!(
1793            "Offset of field: ",
1794            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1),
1795            "::",
1796            stringify!(start)
1797        )
1798    );
1799    assert_eq!(
1800        unsafe {
1801            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1>())).end
1802                as *const _ as usize
1803        },
1804        8usize,
1805        concat!(
1806            "Offset of field: ",
1807            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1),
1808            "::",
1809            stringify!(end)
1810        )
1811    );
1812    assert_eq!(
1813        unsafe {
1814            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1>())).top
1815                as *const _ as usize
1816        },
1817        16usize,
1818        concat!(
1819            "Offset of field: ",
1820            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_3__bindgen_ty_1),
1821            "::",
1822            stringify!(top)
1823        )
1824    );
1825}
1826#[test]
1827fn bindgen_test_layout_yaml_node_s__bindgen_ty_1__bindgen_ty_3() {
1828    assert_eq!(
1829        ::std::mem::size_of::<yaml_node_s__bindgen_ty_1__bindgen_ty_3>(),
1830        32usize,
1831        concat!(
1832            "Size of: ",
1833            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_3)
1834        )
1835    );
1836    assert_eq!(
1837        ::std::mem::align_of::<yaml_node_s__bindgen_ty_1__bindgen_ty_3>(),
1838        8usize,
1839        concat!(
1840            "Alignment of ",
1841            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_3)
1842        )
1843    );
1844    assert_eq!(
1845        unsafe {
1846            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_3>())).pairs as *const _
1847                as usize
1848        },
1849        0usize,
1850        concat!(
1851            "Offset of field: ",
1852            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_3),
1853            "::",
1854            stringify!(pairs)
1855        )
1856    );
1857    assert_eq!(
1858        unsafe {
1859            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1__bindgen_ty_3>())).style as *const _
1860                as usize
1861        },
1862        24usize,
1863        concat!(
1864            "Offset of field: ",
1865            stringify!(yaml_node_s__bindgen_ty_1__bindgen_ty_3),
1866            "::",
1867            stringify!(style)
1868        )
1869    );
1870}
1871#[test]
1872fn bindgen_test_layout_yaml_node_s__bindgen_ty_1() {
1873    assert_eq!(
1874        ::std::mem::size_of::<yaml_node_s__bindgen_ty_1>(),
1875        32usize,
1876        concat!("Size of: ", stringify!(yaml_node_s__bindgen_ty_1))
1877    );
1878    assert_eq!(
1879        ::std::mem::align_of::<yaml_node_s__bindgen_ty_1>(),
1880        8usize,
1881        concat!("Alignment of ", stringify!(yaml_node_s__bindgen_ty_1))
1882    );
1883    assert_eq!(
1884        unsafe {
1885            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1>())).scalar as *const _ as usize
1886        },
1887        0usize,
1888        concat!(
1889            "Offset of field: ",
1890            stringify!(yaml_node_s__bindgen_ty_1),
1891            "::",
1892            stringify!(scalar)
1893        )
1894    );
1895    assert_eq!(
1896        unsafe {
1897            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1>())).sequence as *const _ as usize
1898        },
1899        0usize,
1900        concat!(
1901            "Offset of field: ",
1902            stringify!(yaml_node_s__bindgen_ty_1),
1903            "::",
1904            stringify!(sequence)
1905        )
1906    );
1907    assert_eq!(
1908        unsafe {
1909            &(*(::std::ptr::null::<yaml_node_s__bindgen_ty_1>())).mapping as *const _ as usize
1910        },
1911        0usize,
1912        concat!(
1913            "Offset of field: ",
1914            stringify!(yaml_node_s__bindgen_ty_1),
1915            "::",
1916            stringify!(mapping)
1917        )
1918    );
1919}
1920#[test]
1921fn bindgen_test_layout_yaml_node_s() {
1922    assert_eq!(
1923        ::std::mem::size_of::<yaml_node_s>(),
1924        96usize,
1925        concat!("Size of: ", stringify!(yaml_node_s))
1926    );
1927    assert_eq!(
1928        ::std::mem::align_of::<yaml_node_s>(),
1929        8usize,
1930        concat!("Alignment of ", stringify!(yaml_node_s))
1931    );
1932    assert_eq!(
1933        unsafe { &(*(::std::ptr::null::<yaml_node_s>())).type_ as *const _ as usize },
1934        0usize,
1935        concat!(
1936            "Offset of field: ",
1937            stringify!(yaml_node_s),
1938            "::",
1939            stringify!(type_)
1940        )
1941    );
1942    assert_eq!(
1943        unsafe { &(*(::std::ptr::null::<yaml_node_s>())).tag as *const _ as usize },
1944        8usize,
1945        concat!(
1946            "Offset of field: ",
1947            stringify!(yaml_node_s),
1948            "::",
1949            stringify!(tag)
1950        )
1951    );
1952    assert_eq!(
1953        unsafe { &(*(::std::ptr::null::<yaml_node_s>())).data as *const _ as usize },
1954        16usize,
1955        concat!(
1956            "Offset of field: ",
1957            stringify!(yaml_node_s),
1958            "::",
1959            stringify!(data)
1960        )
1961    );
1962    assert_eq!(
1963        unsafe { &(*(::std::ptr::null::<yaml_node_s>())).start_mark as *const _ as usize },
1964        48usize,
1965        concat!(
1966            "Offset of field: ",
1967            stringify!(yaml_node_s),
1968            "::",
1969            stringify!(start_mark)
1970        )
1971    );
1972    assert_eq!(
1973        unsafe { &(*(::std::ptr::null::<yaml_node_s>())).end_mark as *const _ as usize },
1974        72usize,
1975        concat!(
1976            "Offset of field: ",
1977            stringify!(yaml_node_s),
1978            "::",
1979            stringify!(end_mark)
1980        )
1981    );
1982}
1983#[repr(C)]
1984pub struct yaml_document_s {
1985    pub nodes: yaml_document_s__bindgen_ty_1,
1986    pub version_directive: *mut yaml_version_directive_t,
1987    pub tag_directives: yaml_document_s__bindgen_ty_2,
1988    pub start_implicit: ::std::os::raw::c_int,
1989    pub end_implicit: ::std::os::raw::c_int,
1990    pub start_mark: yaml_mark_t,
1991    pub end_mark: yaml_mark_t,
1992}
1993#[repr(C)]
1994#[derive(Debug, Copy, Clone)]
1995pub struct yaml_document_s__bindgen_ty_1 {
1996    pub start: *mut yaml_node_t,
1997    pub end: *mut yaml_node_t,
1998    pub top: *mut yaml_node_t,
1999}
2000#[test]
2001fn bindgen_test_layout_yaml_document_s__bindgen_ty_1() {
2002    assert_eq!(
2003        ::std::mem::size_of::<yaml_document_s__bindgen_ty_1>(),
2004        24usize,
2005        concat!("Size of: ", stringify!(yaml_document_s__bindgen_ty_1))
2006    );
2007    assert_eq!(
2008        ::std::mem::align_of::<yaml_document_s__bindgen_ty_1>(),
2009        8usize,
2010        concat!("Alignment of ", stringify!(yaml_document_s__bindgen_ty_1))
2011    );
2012    assert_eq!(
2013        unsafe {
2014            &(*(::std::ptr::null::<yaml_document_s__bindgen_ty_1>())).start as *const _ as usize
2015        },
2016        0usize,
2017        concat!(
2018            "Offset of field: ",
2019            stringify!(yaml_document_s__bindgen_ty_1),
2020            "::",
2021            stringify!(start)
2022        )
2023    );
2024    assert_eq!(
2025        unsafe {
2026            &(*(::std::ptr::null::<yaml_document_s__bindgen_ty_1>())).end as *const _ as usize
2027        },
2028        8usize,
2029        concat!(
2030            "Offset of field: ",
2031            stringify!(yaml_document_s__bindgen_ty_1),
2032            "::",
2033            stringify!(end)
2034        )
2035    );
2036    assert_eq!(
2037        unsafe {
2038            &(*(::std::ptr::null::<yaml_document_s__bindgen_ty_1>())).top as *const _ as usize
2039        },
2040        16usize,
2041        concat!(
2042            "Offset of field: ",
2043            stringify!(yaml_document_s__bindgen_ty_1),
2044            "::",
2045            stringify!(top)
2046        )
2047    );
2048}
2049#[repr(C)]
2050#[derive(Debug, Copy, Clone)]
2051pub struct yaml_document_s__bindgen_ty_2 {
2052    pub start: *mut yaml_tag_directive_t,
2053    pub end: *mut yaml_tag_directive_t,
2054}
2055#[test]
2056fn bindgen_test_layout_yaml_document_s__bindgen_ty_2() {
2057    assert_eq!(
2058        ::std::mem::size_of::<yaml_document_s__bindgen_ty_2>(),
2059        16usize,
2060        concat!("Size of: ", stringify!(yaml_document_s__bindgen_ty_2))
2061    );
2062    assert_eq!(
2063        ::std::mem::align_of::<yaml_document_s__bindgen_ty_2>(),
2064        8usize,
2065        concat!("Alignment of ", stringify!(yaml_document_s__bindgen_ty_2))
2066    );
2067    assert_eq!(
2068        unsafe {
2069            &(*(::std::ptr::null::<yaml_document_s__bindgen_ty_2>())).start as *const _ as usize
2070        },
2071        0usize,
2072        concat!(
2073            "Offset of field: ",
2074            stringify!(yaml_document_s__bindgen_ty_2),
2075            "::",
2076            stringify!(start)
2077        )
2078    );
2079    assert_eq!(
2080        unsafe {
2081            &(*(::std::ptr::null::<yaml_document_s__bindgen_ty_2>())).end as *const _ as usize
2082        },
2083        8usize,
2084        concat!(
2085            "Offset of field: ",
2086            stringify!(yaml_document_s__bindgen_ty_2),
2087            "::",
2088            stringify!(end)
2089        )
2090    );
2091}
2092#[test]
2093fn bindgen_test_layout_yaml_document_s() {
2094    assert_eq!(
2095        ::std::mem::size_of::<yaml_document_s>(),
2096        104usize,
2097        concat!("Size of: ", stringify!(yaml_document_s))
2098    );
2099    assert_eq!(
2100        ::std::mem::align_of::<yaml_document_s>(),
2101        8usize,
2102        concat!("Alignment of ", stringify!(yaml_document_s))
2103    );
2104    assert_eq!(
2105        unsafe { &(*(::std::ptr::null::<yaml_document_s>())).nodes as *const _ as usize },
2106        0usize,
2107        concat!(
2108            "Offset of field: ",
2109            stringify!(yaml_document_s),
2110            "::",
2111            stringify!(nodes)
2112        )
2113    );
2114    assert_eq!(
2115        unsafe {
2116            &(*(::std::ptr::null::<yaml_document_s>())).version_directive as *const _ as usize
2117        },
2118        24usize,
2119        concat!(
2120            "Offset of field: ",
2121            stringify!(yaml_document_s),
2122            "::",
2123            stringify!(version_directive)
2124        )
2125    );
2126    assert_eq!(
2127        unsafe { &(*(::std::ptr::null::<yaml_document_s>())).tag_directives as *const _ as usize },
2128        32usize,
2129        concat!(
2130            "Offset of field: ",
2131            stringify!(yaml_document_s),
2132            "::",
2133            stringify!(tag_directives)
2134        )
2135    );
2136    assert_eq!(
2137        unsafe { &(*(::std::ptr::null::<yaml_document_s>())).start_implicit as *const _ as usize },
2138        48usize,
2139        concat!(
2140            "Offset of field: ",
2141            stringify!(yaml_document_s),
2142            "::",
2143            stringify!(start_implicit)
2144        )
2145    );
2146    assert_eq!(
2147        unsafe { &(*(::std::ptr::null::<yaml_document_s>())).end_implicit as *const _ as usize },
2148        52usize,
2149        concat!(
2150            "Offset of field: ",
2151            stringify!(yaml_document_s),
2152            "::",
2153            stringify!(end_implicit)
2154        )
2155    );
2156    assert_eq!(
2157        unsafe { &(*(::std::ptr::null::<yaml_document_s>())).start_mark as *const _ as usize },
2158        56usize,
2159        concat!(
2160            "Offset of field: ",
2161            stringify!(yaml_document_s),
2162            "::",
2163            stringify!(start_mark)
2164        )
2165    );
2166    assert_eq!(
2167        unsafe { &(*(::std::ptr::null::<yaml_document_s>())).end_mark as *const _ as usize },
2168        80usize,
2169        concat!(
2170            "Offset of field: ",
2171            stringify!(yaml_document_s),
2172            "::",
2173            stringify!(end_mark)
2174        )
2175    );
2176}
2177pub type yaml_document_t = yaml_document_s;
2178extern "C" {
2179    pub fn yaml_document_initialize(
2180        document: *mut yaml_document_t,
2181        version_directive: *mut yaml_version_directive_t,
2182        tag_directives_start: *mut yaml_tag_directive_t,
2183        tag_directives_end: *mut yaml_tag_directive_t,
2184        start_implicit: ::std::os::raw::c_int,
2185        end_implicit: ::std::os::raw::c_int,
2186    ) -> ::std::os::raw::c_int;
2187}
2188extern "C" {
2189    pub fn yaml_document_delete(document: *mut yaml_document_t);
2190}
2191extern "C" {
2192    pub fn yaml_document_get_node(
2193        document: *mut yaml_document_t,
2194        index: ::std::os::raw::c_int,
2195    ) -> *mut yaml_node_t;
2196}
2197extern "C" {
2198    pub fn yaml_document_get_root_node(document: *mut yaml_document_t) -> *mut yaml_node_t;
2199}
2200extern "C" {
2201    pub fn yaml_document_add_scalar(
2202        document: *mut yaml_document_t,
2203        tag: *mut yaml_char_t,
2204        value: *mut yaml_char_t,
2205        length: ::std::os::raw::c_int,
2206        style: yaml_scalar_style_t,
2207    ) -> ::std::os::raw::c_int;
2208}
2209extern "C" {
2210    pub fn yaml_document_add_sequence(
2211        document: *mut yaml_document_t,
2212        tag: *mut yaml_char_t,
2213        style: yaml_sequence_style_t,
2214    ) -> ::std::os::raw::c_int;
2215}
2216extern "C" {
2217    pub fn yaml_document_add_mapping(
2218        document: *mut yaml_document_t,
2219        tag: *mut yaml_char_t,
2220        style: yaml_mapping_style_t,
2221    ) -> ::std::os::raw::c_int;
2222}
2223extern "C" {
2224    pub fn yaml_document_append_sequence_item(
2225        document: *mut yaml_document_t,
2226        sequence: ::std::os::raw::c_int,
2227        item: ::std::os::raw::c_int,
2228    ) -> ::std::os::raw::c_int;
2229}
2230extern "C" {
2231    pub fn yaml_document_append_mapping_pair(
2232        document: *mut yaml_document_t,
2233        mapping: ::std::os::raw::c_int,
2234        key: ::std::os::raw::c_int,
2235        value: ::std::os::raw::c_int,
2236    ) -> ::std::os::raw::c_int;
2237}
2238pub type yaml_read_handler_t = ::std::option::Option<
2239    unsafe extern "C" fn(
2240        data: *mut ::std::os::raw::c_void,
2241        buffer: *mut ::std::os::raw::c_uchar,
2242        size: usize,
2243        size_read: *mut usize,
2244    ) -> ::std::os::raw::c_int,
2245>;
2246#[repr(C)]
2247pub struct yaml_simple_key_s {
2248    pub possible: ::std::os::raw::c_int,
2249    pub required: ::std::os::raw::c_int,
2250    pub token_number: usize,
2251    pub mark: yaml_mark_t,
2252}
2253#[test]
2254fn bindgen_test_layout_yaml_simple_key_s() {
2255    assert_eq!(
2256        ::std::mem::size_of::<yaml_simple_key_s>(),
2257        40usize,
2258        concat!("Size of: ", stringify!(yaml_simple_key_s))
2259    );
2260    assert_eq!(
2261        ::std::mem::align_of::<yaml_simple_key_s>(),
2262        8usize,
2263        concat!("Alignment of ", stringify!(yaml_simple_key_s))
2264    );
2265    assert_eq!(
2266        unsafe { &(*(::std::ptr::null::<yaml_simple_key_s>())).possible as *const _ as usize },
2267        0usize,
2268        concat!(
2269            "Offset of field: ",
2270            stringify!(yaml_simple_key_s),
2271            "::",
2272            stringify!(possible)
2273        )
2274    );
2275    assert_eq!(
2276        unsafe { &(*(::std::ptr::null::<yaml_simple_key_s>())).required as *const _ as usize },
2277        4usize,
2278        concat!(
2279            "Offset of field: ",
2280            stringify!(yaml_simple_key_s),
2281            "::",
2282            stringify!(required)
2283        )
2284    );
2285    assert_eq!(
2286        unsafe { &(*(::std::ptr::null::<yaml_simple_key_s>())).token_number as *const _ as usize },
2287        8usize,
2288        concat!(
2289            "Offset of field: ",
2290            stringify!(yaml_simple_key_s),
2291            "::",
2292            stringify!(token_number)
2293        )
2294    );
2295    assert_eq!(
2296        unsafe { &(*(::std::ptr::null::<yaml_simple_key_s>())).mark as *const _ as usize },
2297        16usize,
2298        concat!(
2299            "Offset of field: ",
2300            stringify!(yaml_simple_key_s),
2301            "::",
2302            stringify!(mark)
2303        )
2304    );
2305}
2306pub type yaml_simple_key_t = yaml_simple_key_s;
2307pub const YAML_PARSE_STREAM_START_STATE: yaml_parser_state_e = 0;
2308pub const YAML_PARSE_IMPLICIT_DOCUMENT_START_STATE: yaml_parser_state_e = 1;
2309pub const YAML_PARSE_DOCUMENT_START_STATE: yaml_parser_state_e = 2;
2310pub const YAML_PARSE_DOCUMENT_CONTENT_STATE: yaml_parser_state_e = 3;
2311pub const YAML_PARSE_DOCUMENT_END_STATE: yaml_parser_state_e = 4;
2312pub const YAML_PARSE_BLOCK_NODE_STATE: yaml_parser_state_e = 5;
2313pub const YAML_PARSE_BLOCK_NODE_OR_INDENTLESS_SEQUENCE_STATE: yaml_parser_state_e = 6;
2314pub const YAML_PARSE_FLOW_NODE_STATE: yaml_parser_state_e = 7;
2315pub const YAML_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE: yaml_parser_state_e = 8;
2316pub const YAML_PARSE_BLOCK_SEQUENCE_ENTRY_STATE: yaml_parser_state_e = 9;
2317pub const YAML_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE: yaml_parser_state_e = 10;
2318pub const YAML_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE: yaml_parser_state_e = 11;
2319pub const YAML_PARSE_BLOCK_MAPPING_KEY_STATE: yaml_parser_state_e = 12;
2320pub const YAML_PARSE_BLOCK_MAPPING_VALUE_STATE: yaml_parser_state_e = 13;
2321pub const YAML_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE: yaml_parser_state_e = 14;
2322pub const YAML_PARSE_FLOW_SEQUENCE_ENTRY_STATE: yaml_parser_state_e = 15;
2323pub const YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE: yaml_parser_state_e = 16;
2324pub const YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE: yaml_parser_state_e = 17;
2325pub const YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE: yaml_parser_state_e = 18;
2326pub const YAML_PARSE_FLOW_MAPPING_FIRST_KEY_STATE: yaml_parser_state_e = 19;
2327pub const YAML_PARSE_FLOW_MAPPING_KEY_STATE: yaml_parser_state_e = 20;
2328pub const YAML_PARSE_FLOW_MAPPING_VALUE_STATE: yaml_parser_state_e = 21;
2329pub const YAML_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE: yaml_parser_state_e = 22;
2330pub const YAML_PARSE_END_STATE: yaml_parser_state_e = 23;
2331pub type yaml_parser_state_e = i32;
2332pub use self::yaml_parser_state_e as yaml_parser_state_t;
2333#[repr(C)]
2334pub struct yaml_alias_data_s {
2335    pub anchor: *mut yaml_char_t,
2336    pub index: ::std::os::raw::c_int,
2337    pub mark: yaml_mark_t,
2338}
2339#[test]
2340fn bindgen_test_layout_yaml_alias_data_s() {
2341    assert_eq!(
2342        ::std::mem::size_of::<yaml_alias_data_s>(),
2343        40usize,
2344        concat!("Size of: ", stringify!(yaml_alias_data_s))
2345    );
2346    assert_eq!(
2347        ::std::mem::align_of::<yaml_alias_data_s>(),
2348        8usize,
2349        concat!("Alignment of ", stringify!(yaml_alias_data_s))
2350    );
2351    assert_eq!(
2352        unsafe { &(*(::std::ptr::null::<yaml_alias_data_s>())).anchor as *const _ as usize },
2353        0usize,
2354        concat!(
2355            "Offset of field: ",
2356            stringify!(yaml_alias_data_s),
2357            "::",
2358            stringify!(anchor)
2359        )
2360    );
2361    assert_eq!(
2362        unsafe { &(*(::std::ptr::null::<yaml_alias_data_s>())).index as *const _ as usize },
2363        8usize,
2364        concat!(
2365            "Offset of field: ",
2366            stringify!(yaml_alias_data_s),
2367            "::",
2368            stringify!(index)
2369        )
2370    );
2371    assert_eq!(
2372        unsafe { &(*(::std::ptr::null::<yaml_alias_data_s>())).mark as *const _ as usize },
2373        16usize,
2374        concat!(
2375            "Offset of field: ",
2376            stringify!(yaml_alias_data_s),
2377            "::",
2378            stringify!(mark)
2379        )
2380    );
2381}
2382pub type yaml_alias_data_t = yaml_alias_data_s;
2383#[repr(C)]
2384pub struct yaml_parser_s {
2385    pub error: yaml_error_type_t,
2386    pub problem: *const ::std::os::raw::c_char,
2387    pub problem_offset: usize,
2388    pub problem_value: ::std::os::raw::c_int,
2389    pub problem_mark: yaml_mark_t,
2390    pub context: *const ::std::os::raw::c_char,
2391    pub context_mark: yaml_mark_t,
2392    pub read_handler: yaml_read_handler_t,
2393    pub read_handler_data: *mut ::std::os::raw::c_void,
2394    pub input: yaml_parser_s__bindgen_ty_1,
2395    pub eof: ::std::os::raw::c_int,
2396    pub buffer: yaml_parser_s__bindgen_ty_2,
2397    pub unread: usize,
2398    pub raw_buffer: yaml_parser_s__bindgen_ty_3,
2399    pub encoding: yaml_encoding_t,
2400    pub offset: usize,
2401    pub mark: yaml_mark_t,
2402    pub stream_start_produced: ::std::os::raw::c_int,
2403    pub stream_end_produced: ::std::os::raw::c_int,
2404    pub flow_level: ::std::os::raw::c_int,
2405    pub tokens: yaml_parser_s__bindgen_ty_4,
2406    pub tokens_parsed: usize,
2407    pub token_available: ::std::os::raw::c_int,
2408    pub indents: yaml_parser_s__bindgen_ty_5,
2409    pub indent: ::std::os::raw::c_int,
2410    pub simple_key_allowed: ::std::os::raw::c_int,
2411    pub simple_keys: yaml_parser_s__bindgen_ty_6,
2412    pub states: yaml_parser_s__bindgen_ty_7,
2413    pub state: yaml_parser_state_t,
2414    pub marks: yaml_parser_s__bindgen_ty_8,
2415    pub tag_directives: yaml_parser_s__bindgen_ty_9,
2416    pub aliases: yaml_parser_s__bindgen_ty_10,
2417    pub document: *mut yaml_document_t,
2418}
2419#[repr(C)]
2420#[derive(Copy, Clone)]
2421pub union yaml_parser_s__bindgen_ty_1 {
2422    pub string: yaml_parser_s__bindgen_ty_1__bindgen_ty_1,
2423    pub file: *mut FILE,
2424    _bindgen_union_align: [u64; 3usize],
2425}
2426#[repr(C)]
2427#[derive(Debug, Copy, Clone)]
2428pub struct yaml_parser_s__bindgen_ty_1__bindgen_ty_1 {
2429    pub start: *const ::std::os::raw::c_uchar,
2430    pub end: *const ::std::os::raw::c_uchar,
2431    pub current: *const ::std::os::raw::c_uchar,
2432}
2433#[test]
2434fn bindgen_test_layout_yaml_parser_s__bindgen_ty_1__bindgen_ty_1() {
2435    assert_eq!(
2436        ::std::mem::size_of::<yaml_parser_s__bindgen_ty_1__bindgen_ty_1>(),
2437        24usize,
2438        concat!(
2439            "Size of: ",
2440            stringify!(yaml_parser_s__bindgen_ty_1__bindgen_ty_1)
2441        )
2442    );
2443    assert_eq!(
2444        ::std::mem::align_of::<yaml_parser_s__bindgen_ty_1__bindgen_ty_1>(),
2445        8usize,
2446        concat!(
2447            "Alignment of ",
2448            stringify!(yaml_parser_s__bindgen_ty_1__bindgen_ty_1)
2449        )
2450    );
2451    assert_eq!(
2452        unsafe {
2453            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_1__bindgen_ty_1>())).start as *const _
2454                as usize
2455        },
2456        0usize,
2457        concat!(
2458            "Offset of field: ",
2459            stringify!(yaml_parser_s__bindgen_ty_1__bindgen_ty_1),
2460            "::",
2461            stringify!(start)
2462        )
2463    );
2464    assert_eq!(
2465        unsafe {
2466            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_1__bindgen_ty_1>())).end as *const _
2467                as usize
2468        },
2469        8usize,
2470        concat!(
2471            "Offset of field: ",
2472            stringify!(yaml_parser_s__bindgen_ty_1__bindgen_ty_1),
2473            "::",
2474            stringify!(end)
2475        )
2476    );
2477    assert_eq!(
2478        unsafe {
2479            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_1__bindgen_ty_1>())).current
2480                as *const _ as usize
2481        },
2482        16usize,
2483        concat!(
2484            "Offset of field: ",
2485            stringify!(yaml_parser_s__bindgen_ty_1__bindgen_ty_1),
2486            "::",
2487            stringify!(current)
2488        )
2489    );
2490}
2491#[test]
2492fn bindgen_test_layout_yaml_parser_s__bindgen_ty_1() {
2493    assert_eq!(
2494        ::std::mem::size_of::<yaml_parser_s__bindgen_ty_1>(),
2495        24usize,
2496        concat!("Size of: ", stringify!(yaml_parser_s__bindgen_ty_1))
2497    );
2498    assert_eq!(
2499        ::std::mem::align_of::<yaml_parser_s__bindgen_ty_1>(),
2500        8usize,
2501        concat!("Alignment of ", stringify!(yaml_parser_s__bindgen_ty_1))
2502    );
2503    assert_eq!(
2504        unsafe {
2505            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_1>())).string as *const _ as usize
2506        },
2507        0usize,
2508        concat!(
2509            "Offset of field: ",
2510            stringify!(yaml_parser_s__bindgen_ty_1),
2511            "::",
2512            stringify!(string)
2513        )
2514    );
2515    assert_eq!(
2516        unsafe {
2517            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_1>())).file as *const _ as usize
2518        },
2519        0usize,
2520        concat!(
2521            "Offset of field: ",
2522            stringify!(yaml_parser_s__bindgen_ty_1),
2523            "::",
2524            stringify!(file)
2525        )
2526    );
2527}
2528#[repr(C)]
2529#[derive(Debug, Copy, Clone)]
2530pub struct yaml_parser_s__bindgen_ty_2 {
2531    pub start: *mut yaml_char_t,
2532    pub end: *mut yaml_char_t,
2533    pub pointer: *mut yaml_char_t,
2534    pub last: *mut yaml_char_t,
2535}
2536#[test]
2537fn bindgen_test_layout_yaml_parser_s__bindgen_ty_2() {
2538    assert_eq!(
2539        ::std::mem::size_of::<yaml_parser_s__bindgen_ty_2>(),
2540        32usize,
2541        concat!("Size of: ", stringify!(yaml_parser_s__bindgen_ty_2))
2542    );
2543    assert_eq!(
2544        ::std::mem::align_of::<yaml_parser_s__bindgen_ty_2>(),
2545        8usize,
2546        concat!("Alignment of ", stringify!(yaml_parser_s__bindgen_ty_2))
2547    );
2548    assert_eq!(
2549        unsafe {
2550            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_2>())).start as *const _ as usize
2551        },
2552        0usize,
2553        concat!(
2554            "Offset of field: ",
2555            stringify!(yaml_parser_s__bindgen_ty_2),
2556            "::",
2557            stringify!(start)
2558        )
2559    );
2560    assert_eq!(
2561        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_2>())).end as *const _ as usize },
2562        8usize,
2563        concat!(
2564            "Offset of field: ",
2565            stringify!(yaml_parser_s__bindgen_ty_2),
2566            "::",
2567            stringify!(end)
2568        )
2569    );
2570    assert_eq!(
2571        unsafe {
2572            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_2>())).pointer as *const _ as usize
2573        },
2574        16usize,
2575        concat!(
2576            "Offset of field: ",
2577            stringify!(yaml_parser_s__bindgen_ty_2),
2578            "::",
2579            stringify!(pointer)
2580        )
2581    );
2582    assert_eq!(
2583        unsafe {
2584            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_2>())).last as *const _ as usize
2585        },
2586        24usize,
2587        concat!(
2588            "Offset of field: ",
2589            stringify!(yaml_parser_s__bindgen_ty_2),
2590            "::",
2591            stringify!(last)
2592        )
2593    );
2594}
2595#[repr(C)]
2596#[derive(Debug, Copy, Clone)]
2597pub struct yaml_parser_s__bindgen_ty_3 {
2598    pub start: *mut ::std::os::raw::c_uchar,
2599    pub end: *mut ::std::os::raw::c_uchar,
2600    pub pointer: *mut ::std::os::raw::c_uchar,
2601    pub last: *mut ::std::os::raw::c_uchar,
2602}
2603#[test]
2604fn bindgen_test_layout_yaml_parser_s__bindgen_ty_3() {
2605    assert_eq!(
2606        ::std::mem::size_of::<yaml_parser_s__bindgen_ty_3>(),
2607        32usize,
2608        concat!("Size of: ", stringify!(yaml_parser_s__bindgen_ty_3))
2609    );
2610    assert_eq!(
2611        ::std::mem::align_of::<yaml_parser_s__bindgen_ty_3>(),
2612        8usize,
2613        concat!("Alignment of ", stringify!(yaml_parser_s__bindgen_ty_3))
2614    );
2615    assert_eq!(
2616        unsafe {
2617            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_3>())).start as *const _ as usize
2618        },
2619        0usize,
2620        concat!(
2621            "Offset of field: ",
2622            stringify!(yaml_parser_s__bindgen_ty_3),
2623            "::",
2624            stringify!(start)
2625        )
2626    );
2627    assert_eq!(
2628        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_3>())).end as *const _ as usize },
2629        8usize,
2630        concat!(
2631            "Offset of field: ",
2632            stringify!(yaml_parser_s__bindgen_ty_3),
2633            "::",
2634            stringify!(end)
2635        )
2636    );
2637    assert_eq!(
2638        unsafe {
2639            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_3>())).pointer as *const _ as usize
2640        },
2641        16usize,
2642        concat!(
2643            "Offset of field: ",
2644            stringify!(yaml_parser_s__bindgen_ty_3),
2645            "::",
2646            stringify!(pointer)
2647        )
2648    );
2649    assert_eq!(
2650        unsafe {
2651            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_3>())).last as *const _ as usize
2652        },
2653        24usize,
2654        concat!(
2655            "Offset of field: ",
2656            stringify!(yaml_parser_s__bindgen_ty_3),
2657            "::",
2658            stringify!(last)
2659        )
2660    );
2661}
2662#[repr(C)]
2663#[derive(Debug, Copy, Clone)]
2664pub struct yaml_parser_s__bindgen_ty_4 {
2665    pub start: *mut yaml_token_t,
2666    pub end: *mut yaml_token_t,
2667    pub head: *mut yaml_token_t,
2668    pub tail: *mut yaml_token_t,
2669}
2670#[test]
2671fn bindgen_test_layout_yaml_parser_s__bindgen_ty_4() {
2672    assert_eq!(
2673        ::std::mem::size_of::<yaml_parser_s__bindgen_ty_4>(),
2674        32usize,
2675        concat!("Size of: ", stringify!(yaml_parser_s__bindgen_ty_4))
2676    );
2677    assert_eq!(
2678        ::std::mem::align_of::<yaml_parser_s__bindgen_ty_4>(),
2679        8usize,
2680        concat!("Alignment of ", stringify!(yaml_parser_s__bindgen_ty_4))
2681    );
2682    assert_eq!(
2683        unsafe {
2684            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_4>())).start as *const _ as usize
2685        },
2686        0usize,
2687        concat!(
2688            "Offset of field: ",
2689            stringify!(yaml_parser_s__bindgen_ty_4),
2690            "::",
2691            stringify!(start)
2692        )
2693    );
2694    assert_eq!(
2695        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_4>())).end as *const _ as usize },
2696        8usize,
2697        concat!(
2698            "Offset of field: ",
2699            stringify!(yaml_parser_s__bindgen_ty_4),
2700            "::",
2701            stringify!(end)
2702        )
2703    );
2704    assert_eq!(
2705        unsafe {
2706            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_4>())).head as *const _ as usize
2707        },
2708        16usize,
2709        concat!(
2710            "Offset of field: ",
2711            stringify!(yaml_parser_s__bindgen_ty_4),
2712            "::",
2713            stringify!(head)
2714        )
2715    );
2716    assert_eq!(
2717        unsafe {
2718            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_4>())).tail as *const _ as usize
2719        },
2720        24usize,
2721        concat!(
2722            "Offset of field: ",
2723            stringify!(yaml_parser_s__bindgen_ty_4),
2724            "::",
2725            stringify!(tail)
2726        )
2727    );
2728}
2729#[repr(C)]
2730#[derive(Debug, Copy, Clone)]
2731pub struct yaml_parser_s__bindgen_ty_5 {
2732    pub start: *mut ::std::os::raw::c_int,
2733    pub end: *mut ::std::os::raw::c_int,
2734    pub top: *mut ::std::os::raw::c_int,
2735}
2736#[test]
2737fn bindgen_test_layout_yaml_parser_s__bindgen_ty_5() {
2738    assert_eq!(
2739        ::std::mem::size_of::<yaml_parser_s__bindgen_ty_5>(),
2740        24usize,
2741        concat!("Size of: ", stringify!(yaml_parser_s__bindgen_ty_5))
2742    );
2743    assert_eq!(
2744        ::std::mem::align_of::<yaml_parser_s__bindgen_ty_5>(),
2745        8usize,
2746        concat!("Alignment of ", stringify!(yaml_parser_s__bindgen_ty_5))
2747    );
2748    assert_eq!(
2749        unsafe {
2750            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_5>())).start as *const _ as usize
2751        },
2752        0usize,
2753        concat!(
2754            "Offset of field: ",
2755            stringify!(yaml_parser_s__bindgen_ty_5),
2756            "::",
2757            stringify!(start)
2758        )
2759    );
2760    assert_eq!(
2761        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_5>())).end as *const _ as usize },
2762        8usize,
2763        concat!(
2764            "Offset of field: ",
2765            stringify!(yaml_parser_s__bindgen_ty_5),
2766            "::",
2767            stringify!(end)
2768        )
2769    );
2770    assert_eq!(
2771        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_5>())).top as *const _ as usize },
2772        16usize,
2773        concat!(
2774            "Offset of field: ",
2775            stringify!(yaml_parser_s__bindgen_ty_5),
2776            "::",
2777            stringify!(top)
2778        )
2779    );
2780}
2781#[repr(C)]
2782#[derive(Debug, Copy, Clone)]
2783pub struct yaml_parser_s__bindgen_ty_6 {
2784    pub start: *mut yaml_simple_key_t,
2785    pub end: *mut yaml_simple_key_t,
2786    pub top: *mut yaml_simple_key_t,
2787}
2788#[test]
2789fn bindgen_test_layout_yaml_parser_s__bindgen_ty_6() {
2790    assert_eq!(
2791        ::std::mem::size_of::<yaml_parser_s__bindgen_ty_6>(),
2792        24usize,
2793        concat!("Size of: ", stringify!(yaml_parser_s__bindgen_ty_6))
2794    );
2795    assert_eq!(
2796        ::std::mem::align_of::<yaml_parser_s__bindgen_ty_6>(),
2797        8usize,
2798        concat!("Alignment of ", stringify!(yaml_parser_s__bindgen_ty_6))
2799    );
2800    assert_eq!(
2801        unsafe {
2802            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_6>())).start as *const _ as usize
2803        },
2804        0usize,
2805        concat!(
2806            "Offset of field: ",
2807            stringify!(yaml_parser_s__bindgen_ty_6),
2808            "::",
2809            stringify!(start)
2810        )
2811    );
2812    assert_eq!(
2813        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_6>())).end as *const _ as usize },
2814        8usize,
2815        concat!(
2816            "Offset of field: ",
2817            stringify!(yaml_parser_s__bindgen_ty_6),
2818            "::",
2819            stringify!(end)
2820        )
2821    );
2822    assert_eq!(
2823        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_6>())).top as *const _ as usize },
2824        16usize,
2825        concat!(
2826            "Offset of field: ",
2827            stringify!(yaml_parser_s__bindgen_ty_6),
2828            "::",
2829            stringify!(top)
2830        )
2831    );
2832}
2833#[repr(C)]
2834#[derive(Debug, Copy, Clone)]
2835pub struct yaml_parser_s__bindgen_ty_7 {
2836    pub start: *mut yaml_parser_state_t,
2837    pub end: *mut yaml_parser_state_t,
2838    pub top: *mut yaml_parser_state_t,
2839}
2840#[test]
2841fn bindgen_test_layout_yaml_parser_s__bindgen_ty_7() {
2842    assert_eq!(
2843        ::std::mem::size_of::<yaml_parser_s__bindgen_ty_7>(),
2844        24usize,
2845        concat!("Size of: ", stringify!(yaml_parser_s__bindgen_ty_7))
2846    );
2847    assert_eq!(
2848        ::std::mem::align_of::<yaml_parser_s__bindgen_ty_7>(),
2849        8usize,
2850        concat!("Alignment of ", stringify!(yaml_parser_s__bindgen_ty_7))
2851    );
2852    assert_eq!(
2853        unsafe {
2854            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_7>())).start as *const _ as usize
2855        },
2856        0usize,
2857        concat!(
2858            "Offset of field: ",
2859            stringify!(yaml_parser_s__bindgen_ty_7),
2860            "::",
2861            stringify!(start)
2862        )
2863    );
2864    assert_eq!(
2865        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_7>())).end as *const _ as usize },
2866        8usize,
2867        concat!(
2868            "Offset of field: ",
2869            stringify!(yaml_parser_s__bindgen_ty_7),
2870            "::",
2871            stringify!(end)
2872        )
2873    );
2874    assert_eq!(
2875        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_7>())).top as *const _ as usize },
2876        16usize,
2877        concat!(
2878            "Offset of field: ",
2879            stringify!(yaml_parser_s__bindgen_ty_7),
2880            "::",
2881            stringify!(top)
2882        )
2883    );
2884}
2885#[repr(C)]
2886#[derive(Debug, Copy, Clone)]
2887pub struct yaml_parser_s__bindgen_ty_8 {
2888    pub start: *mut yaml_mark_t,
2889    pub end: *mut yaml_mark_t,
2890    pub top: *mut yaml_mark_t,
2891}
2892#[test]
2893fn bindgen_test_layout_yaml_parser_s__bindgen_ty_8() {
2894    assert_eq!(
2895        ::std::mem::size_of::<yaml_parser_s__bindgen_ty_8>(),
2896        24usize,
2897        concat!("Size of: ", stringify!(yaml_parser_s__bindgen_ty_8))
2898    );
2899    assert_eq!(
2900        ::std::mem::align_of::<yaml_parser_s__bindgen_ty_8>(),
2901        8usize,
2902        concat!("Alignment of ", stringify!(yaml_parser_s__bindgen_ty_8))
2903    );
2904    assert_eq!(
2905        unsafe {
2906            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_8>())).start as *const _ as usize
2907        },
2908        0usize,
2909        concat!(
2910            "Offset of field: ",
2911            stringify!(yaml_parser_s__bindgen_ty_8),
2912            "::",
2913            stringify!(start)
2914        )
2915    );
2916    assert_eq!(
2917        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_8>())).end as *const _ as usize },
2918        8usize,
2919        concat!(
2920            "Offset of field: ",
2921            stringify!(yaml_parser_s__bindgen_ty_8),
2922            "::",
2923            stringify!(end)
2924        )
2925    );
2926    assert_eq!(
2927        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_8>())).top as *const _ as usize },
2928        16usize,
2929        concat!(
2930            "Offset of field: ",
2931            stringify!(yaml_parser_s__bindgen_ty_8),
2932            "::",
2933            stringify!(top)
2934        )
2935    );
2936}
2937#[repr(C)]
2938#[derive(Debug, Copy, Clone)]
2939pub struct yaml_parser_s__bindgen_ty_9 {
2940    pub start: *mut yaml_tag_directive_t,
2941    pub end: *mut yaml_tag_directive_t,
2942    pub top: *mut yaml_tag_directive_t,
2943}
2944#[test]
2945fn bindgen_test_layout_yaml_parser_s__bindgen_ty_9() {
2946    assert_eq!(
2947        ::std::mem::size_of::<yaml_parser_s__bindgen_ty_9>(),
2948        24usize,
2949        concat!("Size of: ", stringify!(yaml_parser_s__bindgen_ty_9))
2950    );
2951    assert_eq!(
2952        ::std::mem::align_of::<yaml_parser_s__bindgen_ty_9>(),
2953        8usize,
2954        concat!("Alignment of ", stringify!(yaml_parser_s__bindgen_ty_9))
2955    );
2956    assert_eq!(
2957        unsafe {
2958            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_9>())).start as *const _ as usize
2959        },
2960        0usize,
2961        concat!(
2962            "Offset of field: ",
2963            stringify!(yaml_parser_s__bindgen_ty_9),
2964            "::",
2965            stringify!(start)
2966        )
2967    );
2968    assert_eq!(
2969        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_9>())).end as *const _ as usize },
2970        8usize,
2971        concat!(
2972            "Offset of field: ",
2973            stringify!(yaml_parser_s__bindgen_ty_9),
2974            "::",
2975            stringify!(end)
2976        )
2977    );
2978    assert_eq!(
2979        unsafe { &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_9>())).top as *const _ as usize },
2980        16usize,
2981        concat!(
2982            "Offset of field: ",
2983            stringify!(yaml_parser_s__bindgen_ty_9),
2984            "::",
2985            stringify!(top)
2986        )
2987    );
2988}
2989#[repr(C)]
2990#[derive(Debug, Copy, Clone)]
2991pub struct yaml_parser_s__bindgen_ty_10 {
2992    pub start: *mut yaml_alias_data_t,
2993    pub end: *mut yaml_alias_data_t,
2994    pub top: *mut yaml_alias_data_t,
2995}
2996#[test]
2997fn bindgen_test_layout_yaml_parser_s__bindgen_ty_10() {
2998    assert_eq!(
2999        ::std::mem::size_of::<yaml_parser_s__bindgen_ty_10>(),
3000        24usize,
3001        concat!("Size of: ", stringify!(yaml_parser_s__bindgen_ty_10))
3002    );
3003    assert_eq!(
3004        ::std::mem::align_of::<yaml_parser_s__bindgen_ty_10>(),
3005        8usize,
3006        concat!("Alignment of ", stringify!(yaml_parser_s__bindgen_ty_10))
3007    );
3008    assert_eq!(
3009        unsafe {
3010            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_10>())).start as *const _ as usize
3011        },
3012        0usize,
3013        concat!(
3014            "Offset of field: ",
3015            stringify!(yaml_parser_s__bindgen_ty_10),
3016            "::",
3017            stringify!(start)
3018        )
3019    );
3020    assert_eq!(
3021        unsafe {
3022            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_10>())).end as *const _ as usize
3023        },
3024        8usize,
3025        concat!(
3026            "Offset of field: ",
3027            stringify!(yaml_parser_s__bindgen_ty_10),
3028            "::",
3029            stringify!(end)
3030        )
3031    );
3032    assert_eq!(
3033        unsafe {
3034            &(*(::std::ptr::null::<yaml_parser_s__bindgen_ty_10>())).top as *const _ as usize
3035        },
3036        16usize,
3037        concat!(
3038            "Offset of field: ",
3039            stringify!(yaml_parser_s__bindgen_ty_10),
3040            "::",
3041            stringify!(top)
3042        )
3043    );
3044}
3045#[test]
3046fn bindgen_test_layout_yaml_parser_s() {
3047    assert_eq!(
3048        ::std::mem::size_of::<yaml_parser_s>(),
3049        480usize,
3050        concat!("Size of: ", stringify!(yaml_parser_s))
3051    );
3052    assert_eq!(
3053        ::std::mem::align_of::<yaml_parser_s>(),
3054        8usize,
3055        concat!("Alignment of ", stringify!(yaml_parser_s))
3056    );
3057    assert_eq!(
3058        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).error as *const _ as usize },
3059        0usize,
3060        concat!(
3061            "Offset of field: ",
3062            stringify!(yaml_parser_s),
3063            "::",
3064            stringify!(error)
3065        )
3066    );
3067    assert_eq!(
3068        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).problem as *const _ as usize },
3069        8usize,
3070        concat!(
3071            "Offset of field: ",
3072            stringify!(yaml_parser_s),
3073            "::",
3074            stringify!(problem)
3075        )
3076    );
3077    assert_eq!(
3078        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).problem_offset as *const _ as usize },
3079        16usize,
3080        concat!(
3081            "Offset of field: ",
3082            stringify!(yaml_parser_s),
3083            "::",
3084            stringify!(problem_offset)
3085        )
3086    );
3087    assert_eq!(
3088        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).problem_value as *const _ as usize },
3089        24usize,
3090        concat!(
3091            "Offset of field: ",
3092            stringify!(yaml_parser_s),
3093            "::",
3094            stringify!(problem_value)
3095        )
3096    );
3097    assert_eq!(
3098        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).problem_mark as *const _ as usize },
3099        32usize,
3100        concat!(
3101            "Offset of field: ",
3102            stringify!(yaml_parser_s),
3103            "::",
3104            stringify!(problem_mark)
3105        )
3106    );
3107    assert_eq!(
3108        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).context as *const _ as usize },
3109        56usize,
3110        concat!(
3111            "Offset of field: ",
3112            stringify!(yaml_parser_s),
3113            "::",
3114            stringify!(context)
3115        )
3116    );
3117    assert_eq!(
3118        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).context_mark as *const _ as usize },
3119        64usize,
3120        concat!(
3121            "Offset of field: ",
3122            stringify!(yaml_parser_s),
3123            "::",
3124            stringify!(context_mark)
3125        )
3126    );
3127    assert_eq!(
3128        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).read_handler as *const _ as usize },
3129        88usize,
3130        concat!(
3131            "Offset of field: ",
3132            stringify!(yaml_parser_s),
3133            "::",
3134            stringify!(read_handler)
3135        )
3136    );
3137    assert_eq!(
3138        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).read_handler_data as *const _ as usize },
3139        96usize,
3140        concat!(
3141            "Offset of field: ",
3142            stringify!(yaml_parser_s),
3143            "::",
3144            stringify!(read_handler_data)
3145        )
3146    );
3147    assert_eq!(
3148        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).input as *const _ as usize },
3149        104usize,
3150        concat!(
3151            "Offset of field: ",
3152            stringify!(yaml_parser_s),
3153            "::",
3154            stringify!(input)
3155        )
3156    );
3157    assert_eq!(
3158        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).eof as *const _ as usize },
3159        128usize,
3160        concat!(
3161            "Offset of field: ",
3162            stringify!(yaml_parser_s),
3163            "::",
3164            stringify!(eof)
3165        )
3166    );
3167    assert_eq!(
3168        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).buffer as *const _ as usize },
3169        136usize,
3170        concat!(
3171            "Offset of field: ",
3172            stringify!(yaml_parser_s),
3173            "::",
3174            stringify!(buffer)
3175        )
3176    );
3177    assert_eq!(
3178        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).unread as *const _ as usize },
3179        168usize,
3180        concat!(
3181            "Offset of field: ",
3182            stringify!(yaml_parser_s),
3183            "::",
3184            stringify!(unread)
3185        )
3186    );
3187    assert_eq!(
3188        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).raw_buffer as *const _ as usize },
3189        176usize,
3190        concat!(
3191            "Offset of field: ",
3192            stringify!(yaml_parser_s),
3193            "::",
3194            stringify!(raw_buffer)
3195        )
3196    );
3197    assert_eq!(
3198        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).encoding as *const _ as usize },
3199        208usize,
3200        concat!(
3201            "Offset of field: ",
3202            stringify!(yaml_parser_s),
3203            "::",
3204            stringify!(encoding)
3205        )
3206    );
3207    assert_eq!(
3208        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).offset as *const _ as usize },
3209        216usize,
3210        concat!(
3211            "Offset of field: ",
3212            stringify!(yaml_parser_s),
3213            "::",
3214            stringify!(offset)
3215        )
3216    );
3217    assert_eq!(
3218        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).mark as *const _ as usize },
3219        224usize,
3220        concat!(
3221            "Offset of field: ",
3222            stringify!(yaml_parser_s),
3223            "::",
3224            stringify!(mark)
3225        )
3226    );
3227    assert_eq!(
3228        unsafe {
3229            &(*(::std::ptr::null::<yaml_parser_s>())).stream_start_produced as *const _ as usize
3230        },
3231        248usize,
3232        concat!(
3233            "Offset of field: ",
3234            stringify!(yaml_parser_s),
3235            "::",
3236            stringify!(stream_start_produced)
3237        )
3238    );
3239    assert_eq!(
3240        unsafe {
3241            &(*(::std::ptr::null::<yaml_parser_s>())).stream_end_produced as *const _ as usize
3242        },
3243        252usize,
3244        concat!(
3245            "Offset of field: ",
3246            stringify!(yaml_parser_s),
3247            "::",
3248            stringify!(stream_end_produced)
3249        )
3250    );
3251    assert_eq!(
3252        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).flow_level as *const _ as usize },
3253        256usize,
3254        concat!(
3255            "Offset of field: ",
3256            stringify!(yaml_parser_s),
3257            "::",
3258            stringify!(flow_level)
3259        )
3260    );
3261    assert_eq!(
3262        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).tokens as *const _ as usize },
3263        264usize,
3264        concat!(
3265            "Offset of field: ",
3266            stringify!(yaml_parser_s),
3267            "::",
3268            stringify!(tokens)
3269        )
3270    );
3271    assert_eq!(
3272        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).tokens_parsed as *const _ as usize },
3273        296usize,
3274        concat!(
3275            "Offset of field: ",
3276            stringify!(yaml_parser_s),
3277            "::",
3278            stringify!(tokens_parsed)
3279        )
3280    );
3281    assert_eq!(
3282        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).token_available as *const _ as usize },
3283        304usize,
3284        concat!(
3285            "Offset of field: ",
3286            stringify!(yaml_parser_s),
3287            "::",
3288            stringify!(token_available)
3289        )
3290    );
3291    assert_eq!(
3292        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).indents as *const _ as usize },
3293        312usize,
3294        concat!(
3295            "Offset of field: ",
3296            stringify!(yaml_parser_s),
3297            "::",
3298            stringify!(indents)
3299        )
3300    );
3301    assert_eq!(
3302        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).indent as *const _ as usize },
3303        336usize,
3304        concat!(
3305            "Offset of field: ",
3306            stringify!(yaml_parser_s),
3307            "::",
3308            stringify!(indent)
3309        )
3310    );
3311    assert_eq!(
3312        unsafe {
3313            &(*(::std::ptr::null::<yaml_parser_s>())).simple_key_allowed as *const _ as usize
3314        },
3315        340usize,
3316        concat!(
3317            "Offset of field: ",
3318            stringify!(yaml_parser_s),
3319            "::",
3320            stringify!(simple_key_allowed)
3321        )
3322    );
3323    assert_eq!(
3324        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).simple_keys as *const _ as usize },
3325        344usize,
3326        concat!(
3327            "Offset of field: ",
3328            stringify!(yaml_parser_s),
3329            "::",
3330            stringify!(simple_keys)
3331        )
3332    );
3333    assert_eq!(
3334        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).states as *const _ as usize },
3335        368usize,
3336        concat!(
3337            "Offset of field: ",
3338            stringify!(yaml_parser_s),
3339            "::",
3340            stringify!(states)
3341        )
3342    );
3343    assert_eq!(
3344        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).state as *const _ as usize },
3345        392usize,
3346        concat!(
3347            "Offset of field: ",
3348            stringify!(yaml_parser_s),
3349            "::",
3350            stringify!(state)
3351        )
3352    );
3353    assert_eq!(
3354        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).marks as *const _ as usize },
3355        400usize,
3356        concat!(
3357            "Offset of field: ",
3358            stringify!(yaml_parser_s),
3359            "::",
3360            stringify!(marks)
3361        )
3362    );
3363    assert_eq!(
3364        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).tag_directives as *const _ as usize },
3365        424usize,
3366        concat!(
3367            "Offset of field: ",
3368            stringify!(yaml_parser_s),
3369            "::",
3370            stringify!(tag_directives)
3371        )
3372    );
3373    assert_eq!(
3374        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).aliases as *const _ as usize },
3375        448usize,
3376        concat!(
3377            "Offset of field: ",
3378            stringify!(yaml_parser_s),
3379            "::",
3380            stringify!(aliases)
3381        )
3382    );
3383    assert_eq!(
3384        unsafe { &(*(::std::ptr::null::<yaml_parser_s>())).document as *const _ as usize },
3385        472usize,
3386        concat!(
3387            "Offset of field: ",
3388            stringify!(yaml_parser_s),
3389            "::",
3390            stringify!(document)
3391        )
3392    );
3393}
3394pub type yaml_parser_t = yaml_parser_s;
3395extern "C" {
3396    pub fn yaml_parser_initialize(parser: *mut yaml_parser_t) -> ::std::os::raw::c_int;
3397}
3398extern "C" {
3399    pub fn yaml_parser_delete(parser: *mut yaml_parser_t);
3400}
3401extern "C" {
3402    pub fn yaml_parser_set_input_string(
3403        parser: *mut yaml_parser_t,
3404        input: *const ::std::os::raw::c_uchar,
3405        size: usize,
3406    );
3407}
3408extern "C" {
3409    pub fn yaml_parser_set_input_file(parser: *mut yaml_parser_t, file: *mut FILE);
3410}
3411extern "C" {
3412    pub fn yaml_parser_set_input(
3413        parser: *mut yaml_parser_t,
3414        handler: yaml_read_handler_t,
3415        data: *mut ::std::os::raw::c_void,
3416    );
3417}
3418extern "C" {
3419    pub fn yaml_parser_set_encoding(parser: *mut yaml_parser_t, encoding: yaml_encoding_t);
3420}
3421extern "C" {
3422    pub fn yaml_parser_scan(
3423        parser: *mut yaml_parser_t,
3424        token: *mut yaml_token_t,
3425    ) -> ::std::os::raw::c_int;
3426}
3427extern "C" {
3428    pub fn yaml_parser_parse(
3429        parser: *mut yaml_parser_t,
3430        event: *mut yaml_event_t,
3431    ) -> ::std::os::raw::c_int;
3432}
3433extern "C" {
3434    pub fn yaml_parser_load(
3435        parser: *mut yaml_parser_t,
3436        document: *mut yaml_document_t,
3437    ) -> ::std::os::raw::c_int;
3438}
3439pub type yaml_write_handler_t = ::std::option::Option<
3440    unsafe extern "C" fn(
3441        data: *mut ::std::os::raw::c_void,
3442        buffer: *mut ::std::os::raw::c_uchar,
3443        size: usize,
3444    ) -> ::std::os::raw::c_int,
3445>;
3446pub const YAML_EMIT_STREAM_START_STATE: yaml_emitter_state_e = 0;
3447pub const YAML_EMIT_FIRST_DOCUMENT_START_STATE: yaml_emitter_state_e = 1;
3448pub const YAML_EMIT_DOCUMENT_START_STATE: yaml_emitter_state_e = 2;
3449pub const YAML_EMIT_DOCUMENT_CONTENT_STATE: yaml_emitter_state_e = 3;
3450pub const YAML_EMIT_DOCUMENT_END_STATE: yaml_emitter_state_e = 4;
3451pub const YAML_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE: yaml_emitter_state_e = 5;
3452pub const YAML_EMIT_FLOW_SEQUENCE_ITEM_STATE: yaml_emitter_state_e = 6;
3453pub const YAML_EMIT_FLOW_MAPPING_FIRST_KEY_STATE: yaml_emitter_state_e = 7;
3454pub const YAML_EMIT_FLOW_MAPPING_KEY_STATE: yaml_emitter_state_e = 8;
3455pub const YAML_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE: yaml_emitter_state_e = 9;
3456pub const YAML_EMIT_FLOW_MAPPING_VALUE_STATE: yaml_emitter_state_e = 10;
3457pub const YAML_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE: yaml_emitter_state_e = 11;
3458pub const YAML_EMIT_BLOCK_SEQUENCE_ITEM_STATE: yaml_emitter_state_e = 12;
3459pub const YAML_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE: yaml_emitter_state_e = 13;
3460pub const YAML_EMIT_BLOCK_MAPPING_KEY_STATE: yaml_emitter_state_e = 14;
3461pub const YAML_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE: yaml_emitter_state_e = 15;
3462pub const YAML_EMIT_BLOCK_MAPPING_VALUE_STATE: yaml_emitter_state_e = 16;
3463pub const YAML_EMIT_END_STATE: yaml_emitter_state_e = 17;
3464pub type yaml_emitter_state_e = i32;
3465pub use self::yaml_emitter_state_e as yaml_emitter_state_t;
3466#[repr(C)]
3467#[derive(Debug, Copy, Clone)]
3468pub struct yaml_anchors_s {
3469    pub references: ::std::os::raw::c_int,
3470    pub anchor: ::std::os::raw::c_int,
3471    pub serialized: ::std::os::raw::c_int,
3472}
3473#[test]
3474fn bindgen_test_layout_yaml_anchors_s() {
3475    assert_eq!(
3476        ::std::mem::size_of::<yaml_anchors_s>(),
3477        12usize,
3478        concat!("Size of: ", stringify!(yaml_anchors_s))
3479    );
3480    assert_eq!(
3481        ::std::mem::align_of::<yaml_anchors_s>(),
3482        4usize,
3483        concat!("Alignment of ", stringify!(yaml_anchors_s))
3484    );
3485    assert_eq!(
3486        unsafe { &(*(::std::ptr::null::<yaml_anchors_s>())).references as *const _ as usize },
3487        0usize,
3488        concat!(
3489            "Offset of field: ",
3490            stringify!(yaml_anchors_s),
3491            "::",
3492            stringify!(references)
3493        )
3494    );
3495    assert_eq!(
3496        unsafe { &(*(::std::ptr::null::<yaml_anchors_s>())).anchor as *const _ as usize },
3497        4usize,
3498        concat!(
3499            "Offset of field: ",
3500            stringify!(yaml_anchors_s),
3501            "::",
3502            stringify!(anchor)
3503        )
3504    );
3505    assert_eq!(
3506        unsafe { &(*(::std::ptr::null::<yaml_anchors_s>())).serialized as *const _ as usize },
3507        8usize,
3508        concat!(
3509            "Offset of field: ",
3510            stringify!(yaml_anchors_s),
3511            "::",
3512            stringify!(serialized)
3513        )
3514    );
3515}
3516pub type yaml_anchors_t = yaml_anchors_s;
3517#[repr(C)]
3518pub struct yaml_emitter_s {
3519    pub error: yaml_error_type_t,
3520    pub problem: *const ::std::os::raw::c_char,
3521    pub write_handler: yaml_write_handler_t,
3522    pub write_handler_data: *mut ::std::os::raw::c_void,
3523    pub output: yaml_emitter_s__bindgen_ty_1,
3524    pub buffer: yaml_emitter_s__bindgen_ty_2,
3525    pub raw_buffer: yaml_emitter_s__bindgen_ty_3,
3526    pub encoding: yaml_encoding_t,
3527    pub canonical: ::std::os::raw::c_int,
3528    pub best_indent: ::std::os::raw::c_int,
3529    pub best_width: ::std::os::raw::c_int,
3530    pub unicode: ::std::os::raw::c_int,
3531    pub line_break: yaml_break_t,
3532    pub states: yaml_emitter_s__bindgen_ty_4,
3533    pub state: yaml_emitter_state_t,
3534    pub events: yaml_emitter_s__bindgen_ty_5,
3535    pub indents: yaml_emitter_s__bindgen_ty_6,
3536    pub tag_directives: yaml_emitter_s__bindgen_ty_7,
3537    pub indent: ::std::os::raw::c_int,
3538    pub flow_level: ::std::os::raw::c_int,
3539    pub root_context: ::std::os::raw::c_int,
3540    pub sequence_context: ::std::os::raw::c_int,
3541    pub mapping_context: ::std::os::raw::c_int,
3542    pub simple_key_context: ::std::os::raw::c_int,
3543    pub line: ::std::os::raw::c_int,
3544    pub column: ::std::os::raw::c_int,
3545    pub whitespace: ::std::os::raw::c_int,
3546    pub indention: ::std::os::raw::c_int,
3547    pub open_ended: ::std::os::raw::c_int,
3548    pub anchor_data: yaml_emitter_s__bindgen_ty_8,
3549    pub tag_data: yaml_emitter_s__bindgen_ty_9,
3550    pub scalar_data: yaml_emitter_s__bindgen_ty_10,
3551    pub opened: ::std::os::raw::c_int,
3552    pub closed: ::std::os::raw::c_int,
3553    pub anchors: *mut yaml_anchors_t,
3554    pub last_anchor_id: ::std::os::raw::c_int,
3555    pub document: *mut yaml_document_t,
3556}
3557#[repr(C)]
3558pub struct yaml_emitter_s__bindgen_ty_1 {
3559    pub string: __BindgenUnionField<yaml_emitter_s__bindgen_ty_1__bindgen_ty_1>,
3560    pub file: __BindgenUnionField<*mut FILE>,
3561    pub bindgen_union_field: [u64; 3usize],
3562}
3563#[repr(C)]
3564pub struct yaml_emitter_s__bindgen_ty_1__bindgen_ty_1 {
3565    pub buffer: *mut ::std::os::raw::c_uchar,
3566    pub size: usize,
3567    pub size_written: *mut usize,
3568}
3569#[test]
3570fn bindgen_test_layout_yaml_emitter_s__bindgen_ty_1__bindgen_ty_1() {
3571    assert_eq!(
3572        ::std::mem::size_of::<yaml_emitter_s__bindgen_ty_1__bindgen_ty_1>(),
3573        24usize,
3574        concat!(
3575            "Size of: ",
3576            stringify!(yaml_emitter_s__bindgen_ty_1__bindgen_ty_1)
3577        )
3578    );
3579    assert_eq!(
3580        ::std::mem::align_of::<yaml_emitter_s__bindgen_ty_1__bindgen_ty_1>(),
3581        8usize,
3582        concat!(
3583            "Alignment of ",
3584            stringify!(yaml_emitter_s__bindgen_ty_1__bindgen_ty_1)
3585        )
3586    );
3587    assert_eq!(
3588        unsafe {
3589            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_1__bindgen_ty_1>())).buffer
3590                as *const _ as usize
3591        },
3592        0usize,
3593        concat!(
3594            "Offset of field: ",
3595            stringify!(yaml_emitter_s__bindgen_ty_1__bindgen_ty_1),
3596            "::",
3597            stringify!(buffer)
3598        )
3599    );
3600    assert_eq!(
3601        unsafe {
3602            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_1__bindgen_ty_1>())).size as *const _
3603                as usize
3604        },
3605        8usize,
3606        concat!(
3607            "Offset of field: ",
3608            stringify!(yaml_emitter_s__bindgen_ty_1__bindgen_ty_1),
3609            "::",
3610            stringify!(size)
3611        )
3612    );
3613    assert_eq!(
3614        unsafe {
3615            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_1__bindgen_ty_1>())).size_written
3616                as *const _ as usize
3617        },
3618        16usize,
3619        concat!(
3620            "Offset of field: ",
3621            stringify!(yaml_emitter_s__bindgen_ty_1__bindgen_ty_1),
3622            "::",
3623            stringify!(size_written)
3624        )
3625    );
3626}
3627#[test]
3628fn bindgen_test_layout_yaml_emitter_s__bindgen_ty_1() {
3629    assert_eq!(
3630        ::std::mem::size_of::<yaml_emitter_s__bindgen_ty_1>(),
3631        24usize,
3632        concat!("Size of: ", stringify!(yaml_emitter_s__bindgen_ty_1))
3633    );
3634    assert_eq!(
3635        ::std::mem::align_of::<yaml_emitter_s__bindgen_ty_1>(),
3636        8usize,
3637        concat!("Alignment of ", stringify!(yaml_emitter_s__bindgen_ty_1))
3638    );
3639    assert_eq!(
3640        unsafe {
3641            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_1>())).string as *const _ as usize
3642        },
3643        0usize,
3644        concat!(
3645            "Offset of field: ",
3646            stringify!(yaml_emitter_s__bindgen_ty_1),
3647            "::",
3648            stringify!(string)
3649        )
3650    );
3651    assert_eq!(
3652        unsafe {
3653            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_1>())).file as *const _ as usize
3654        },
3655        0usize,
3656        concat!(
3657            "Offset of field: ",
3658            stringify!(yaml_emitter_s__bindgen_ty_1),
3659            "::",
3660            stringify!(file)
3661        )
3662    );
3663}
3664#[repr(C)]
3665#[derive(Debug, Copy, Clone)]
3666pub struct yaml_emitter_s__bindgen_ty_2 {
3667    pub start: *mut yaml_char_t,
3668    pub end: *mut yaml_char_t,
3669    pub pointer: *mut yaml_char_t,
3670    pub last: *mut yaml_char_t,
3671}
3672#[test]
3673fn bindgen_test_layout_yaml_emitter_s__bindgen_ty_2() {
3674    assert_eq!(
3675        ::std::mem::size_of::<yaml_emitter_s__bindgen_ty_2>(),
3676        32usize,
3677        concat!("Size of: ", stringify!(yaml_emitter_s__bindgen_ty_2))
3678    );
3679    assert_eq!(
3680        ::std::mem::align_of::<yaml_emitter_s__bindgen_ty_2>(),
3681        8usize,
3682        concat!("Alignment of ", stringify!(yaml_emitter_s__bindgen_ty_2))
3683    );
3684    assert_eq!(
3685        unsafe {
3686            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_2>())).start as *const _ as usize
3687        },
3688        0usize,
3689        concat!(
3690            "Offset of field: ",
3691            stringify!(yaml_emitter_s__bindgen_ty_2),
3692            "::",
3693            stringify!(start)
3694        )
3695    );
3696    assert_eq!(
3697        unsafe {
3698            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_2>())).end as *const _ as usize
3699        },
3700        8usize,
3701        concat!(
3702            "Offset of field: ",
3703            stringify!(yaml_emitter_s__bindgen_ty_2),
3704            "::",
3705            stringify!(end)
3706        )
3707    );
3708    assert_eq!(
3709        unsafe {
3710            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_2>())).pointer as *const _ as usize
3711        },
3712        16usize,
3713        concat!(
3714            "Offset of field: ",
3715            stringify!(yaml_emitter_s__bindgen_ty_2),
3716            "::",
3717            stringify!(pointer)
3718        )
3719    );
3720    assert_eq!(
3721        unsafe {
3722            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_2>())).last as *const _ as usize
3723        },
3724        24usize,
3725        concat!(
3726            "Offset of field: ",
3727            stringify!(yaml_emitter_s__bindgen_ty_2),
3728            "::",
3729            stringify!(last)
3730        )
3731    );
3732}
3733#[repr(C)]
3734#[derive(Debug, Copy, Clone)]
3735pub struct yaml_emitter_s__bindgen_ty_3 {
3736    pub start: *mut ::std::os::raw::c_uchar,
3737    pub end: *mut ::std::os::raw::c_uchar,
3738    pub pointer: *mut ::std::os::raw::c_uchar,
3739    pub last: *mut ::std::os::raw::c_uchar,
3740}
3741#[test]
3742fn bindgen_test_layout_yaml_emitter_s__bindgen_ty_3() {
3743    assert_eq!(
3744        ::std::mem::size_of::<yaml_emitter_s__bindgen_ty_3>(),
3745        32usize,
3746        concat!("Size of: ", stringify!(yaml_emitter_s__bindgen_ty_3))
3747    );
3748    assert_eq!(
3749        ::std::mem::align_of::<yaml_emitter_s__bindgen_ty_3>(),
3750        8usize,
3751        concat!("Alignment of ", stringify!(yaml_emitter_s__bindgen_ty_3))
3752    );
3753    assert_eq!(
3754        unsafe {
3755            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_3>())).start as *const _ as usize
3756        },
3757        0usize,
3758        concat!(
3759            "Offset of field: ",
3760            stringify!(yaml_emitter_s__bindgen_ty_3),
3761            "::",
3762            stringify!(start)
3763        )
3764    );
3765    assert_eq!(
3766        unsafe {
3767            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_3>())).end as *const _ as usize
3768        },
3769        8usize,
3770        concat!(
3771            "Offset of field: ",
3772            stringify!(yaml_emitter_s__bindgen_ty_3),
3773            "::",
3774            stringify!(end)
3775        )
3776    );
3777    assert_eq!(
3778        unsafe {
3779            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_3>())).pointer as *const _ as usize
3780        },
3781        16usize,
3782        concat!(
3783            "Offset of field: ",
3784            stringify!(yaml_emitter_s__bindgen_ty_3),
3785            "::",
3786            stringify!(pointer)
3787        )
3788    );
3789    assert_eq!(
3790        unsafe {
3791            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_3>())).last as *const _ as usize
3792        },
3793        24usize,
3794        concat!(
3795            "Offset of field: ",
3796            stringify!(yaml_emitter_s__bindgen_ty_3),
3797            "::",
3798            stringify!(last)
3799        )
3800    );
3801}
3802#[repr(C)]
3803#[derive(Debug, Copy, Clone)]
3804pub struct yaml_emitter_s__bindgen_ty_4 {
3805    pub start: *mut yaml_emitter_state_t,
3806    pub end: *mut yaml_emitter_state_t,
3807    pub top: *mut yaml_emitter_state_t,
3808}
3809#[test]
3810fn bindgen_test_layout_yaml_emitter_s__bindgen_ty_4() {
3811    assert_eq!(
3812        ::std::mem::size_of::<yaml_emitter_s__bindgen_ty_4>(),
3813        24usize,
3814        concat!("Size of: ", stringify!(yaml_emitter_s__bindgen_ty_4))
3815    );
3816    assert_eq!(
3817        ::std::mem::align_of::<yaml_emitter_s__bindgen_ty_4>(),
3818        8usize,
3819        concat!("Alignment of ", stringify!(yaml_emitter_s__bindgen_ty_4))
3820    );
3821    assert_eq!(
3822        unsafe {
3823            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_4>())).start as *const _ as usize
3824        },
3825        0usize,
3826        concat!(
3827            "Offset of field: ",
3828            stringify!(yaml_emitter_s__bindgen_ty_4),
3829            "::",
3830            stringify!(start)
3831        )
3832    );
3833    assert_eq!(
3834        unsafe {
3835            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_4>())).end as *const _ as usize
3836        },
3837        8usize,
3838        concat!(
3839            "Offset of field: ",
3840            stringify!(yaml_emitter_s__bindgen_ty_4),
3841            "::",
3842            stringify!(end)
3843        )
3844    );
3845    assert_eq!(
3846        unsafe {
3847            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_4>())).top as *const _ as usize
3848        },
3849        16usize,
3850        concat!(
3851            "Offset of field: ",
3852            stringify!(yaml_emitter_s__bindgen_ty_4),
3853            "::",
3854            stringify!(top)
3855        )
3856    );
3857}
3858#[repr(C)]
3859#[derive(Debug, Copy, Clone)]
3860pub struct yaml_emitter_s__bindgen_ty_5 {
3861    pub start: *mut yaml_event_t,
3862    pub end: *mut yaml_event_t,
3863    pub head: *mut yaml_event_t,
3864    pub tail: *mut yaml_event_t,
3865}
3866#[test]
3867fn bindgen_test_layout_yaml_emitter_s__bindgen_ty_5() {
3868    assert_eq!(
3869        ::std::mem::size_of::<yaml_emitter_s__bindgen_ty_5>(),
3870        32usize,
3871        concat!("Size of: ", stringify!(yaml_emitter_s__bindgen_ty_5))
3872    );
3873    assert_eq!(
3874        ::std::mem::align_of::<yaml_emitter_s__bindgen_ty_5>(),
3875        8usize,
3876        concat!("Alignment of ", stringify!(yaml_emitter_s__bindgen_ty_5))
3877    );
3878    assert_eq!(
3879        unsafe {
3880            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_5>())).start as *const _ as usize
3881        },
3882        0usize,
3883        concat!(
3884            "Offset of field: ",
3885            stringify!(yaml_emitter_s__bindgen_ty_5),
3886            "::",
3887            stringify!(start)
3888        )
3889    );
3890    assert_eq!(
3891        unsafe {
3892            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_5>())).end as *const _ as usize
3893        },
3894        8usize,
3895        concat!(
3896            "Offset of field: ",
3897            stringify!(yaml_emitter_s__bindgen_ty_5),
3898            "::",
3899            stringify!(end)
3900        )
3901    );
3902    assert_eq!(
3903        unsafe {
3904            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_5>())).head as *const _ as usize
3905        },
3906        16usize,
3907        concat!(
3908            "Offset of field: ",
3909            stringify!(yaml_emitter_s__bindgen_ty_5),
3910            "::",
3911            stringify!(head)
3912        )
3913    );
3914    assert_eq!(
3915        unsafe {
3916            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_5>())).tail as *const _ as usize
3917        },
3918        24usize,
3919        concat!(
3920            "Offset of field: ",
3921            stringify!(yaml_emitter_s__bindgen_ty_5),
3922            "::",
3923            stringify!(tail)
3924        )
3925    );
3926}
3927#[repr(C)]
3928#[derive(Debug, Copy, Clone)]
3929pub struct yaml_emitter_s__bindgen_ty_6 {
3930    pub start: *mut ::std::os::raw::c_int,
3931    pub end: *mut ::std::os::raw::c_int,
3932    pub top: *mut ::std::os::raw::c_int,
3933}
3934#[test]
3935fn bindgen_test_layout_yaml_emitter_s__bindgen_ty_6() {
3936    assert_eq!(
3937        ::std::mem::size_of::<yaml_emitter_s__bindgen_ty_6>(),
3938        24usize,
3939        concat!("Size of: ", stringify!(yaml_emitter_s__bindgen_ty_6))
3940    );
3941    assert_eq!(
3942        ::std::mem::align_of::<yaml_emitter_s__bindgen_ty_6>(),
3943        8usize,
3944        concat!("Alignment of ", stringify!(yaml_emitter_s__bindgen_ty_6))
3945    );
3946    assert_eq!(
3947        unsafe {
3948            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_6>())).start as *const _ as usize
3949        },
3950        0usize,
3951        concat!(
3952            "Offset of field: ",
3953            stringify!(yaml_emitter_s__bindgen_ty_6),
3954            "::",
3955            stringify!(start)
3956        )
3957    );
3958    assert_eq!(
3959        unsafe {
3960            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_6>())).end as *const _ as usize
3961        },
3962        8usize,
3963        concat!(
3964            "Offset of field: ",
3965            stringify!(yaml_emitter_s__bindgen_ty_6),
3966            "::",
3967            stringify!(end)
3968        )
3969    );
3970    assert_eq!(
3971        unsafe {
3972            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_6>())).top as *const _ as usize
3973        },
3974        16usize,
3975        concat!(
3976            "Offset of field: ",
3977            stringify!(yaml_emitter_s__bindgen_ty_6),
3978            "::",
3979            stringify!(top)
3980        )
3981    );
3982}
3983#[repr(C)]
3984#[derive(Debug, Copy, Clone)]
3985pub struct yaml_emitter_s__bindgen_ty_7 {
3986    pub start: *mut yaml_tag_directive_t,
3987    pub end: *mut yaml_tag_directive_t,
3988    pub top: *mut yaml_tag_directive_t,
3989}
3990#[test]
3991fn bindgen_test_layout_yaml_emitter_s__bindgen_ty_7() {
3992    assert_eq!(
3993        ::std::mem::size_of::<yaml_emitter_s__bindgen_ty_7>(),
3994        24usize,
3995        concat!("Size of: ", stringify!(yaml_emitter_s__bindgen_ty_7))
3996    );
3997    assert_eq!(
3998        ::std::mem::align_of::<yaml_emitter_s__bindgen_ty_7>(),
3999        8usize,
4000        concat!("Alignment of ", stringify!(yaml_emitter_s__bindgen_ty_7))
4001    );
4002    assert_eq!(
4003        unsafe {
4004            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_7>())).start as *const _ as usize
4005        },
4006        0usize,
4007        concat!(
4008            "Offset of field: ",
4009            stringify!(yaml_emitter_s__bindgen_ty_7),
4010            "::",
4011            stringify!(start)
4012        )
4013    );
4014    assert_eq!(
4015        unsafe {
4016            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_7>())).end as *const _ as usize
4017        },
4018        8usize,
4019        concat!(
4020            "Offset of field: ",
4021            stringify!(yaml_emitter_s__bindgen_ty_7),
4022            "::",
4023            stringify!(end)
4024        )
4025    );
4026    assert_eq!(
4027        unsafe {
4028            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_7>())).top as *const _ as usize
4029        },
4030        16usize,
4031        concat!(
4032            "Offset of field: ",
4033            stringify!(yaml_emitter_s__bindgen_ty_7),
4034            "::",
4035            stringify!(top)
4036        )
4037    );
4038}
4039#[repr(C)]
4040pub struct yaml_emitter_s__bindgen_ty_8 {
4041    pub anchor: *mut yaml_char_t,
4042    pub anchor_length: usize,
4043    pub alias: ::std::os::raw::c_int,
4044}
4045#[test]
4046fn bindgen_test_layout_yaml_emitter_s__bindgen_ty_8() {
4047    assert_eq!(
4048        ::std::mem::size_of::<yaml_emitter_s__bindgen_ty_8>(),
4049        24usize,
4050        concat!("Size of: ", stringify!(yaml_emitter_s__bindgen_ty_8))
4051    );
4052    assert_eq!(
4053        ::std::mem::align_of::<yaml_emitter_s__bindgen_ty_8>(),
4054        8usize,
4055        concat!("Alignment of ", stringify!(yaml_emitter_s__bindgen_ty_8))
4056    );
4057    assert_eq!(
4058        unsafe {
4059            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_8>())).anchor as *const _ as usize
4060        },
4061        0usize,
4062        concat!(
4063            "Offset of field: ",
4064            stringify!(yaml_emitter_s__bindgen_ty_8),
4065            "::",
4066            stringify!(anchor)
4067        )
4068    );
4069    assert_eq!(
4070        unsafe {
4071            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_8>())).anchor_length as *const _
4072                as usize
4073        },
4074        8usize,
4075        concat!(
4076            "Offset of field: ",
4077            stringify!(yaml_emitter_s__bindgen_ty_8),
4078            "::",
4079            stringify!(anchor_length)
4080        )
4081    );
4082    assert_eq!(
4083        unsafe {
4084            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_8>())).alias as *const _ as usize
4085        },
4086        16usize,
4087        concat!(
4088            "Offset of field: ",
4089            stringify!(yaml_emitter_s__bindgen_ty_8),
4090            "::",
4091            stringify!(alias)
4092        )
4093    );
4094}
4095#[repr(C)]
4096pub struct yaml_emitter_s__bindgen_ty_9 {
4097    pub handle: *mut yaml_char_t,
4098    pub handle_length: usize,
4099    pub suffix: *mut yaml_char_t,
4100    pub suffix_length: usize,
4101}
4102#[test]
4103fn bindgen_test_layout_yaml_emitter_s__bindgen_ty_9() {
4104    assert_eq!(
4105        ::std::mem::size_of::<yaml_emitter_s__bindgen_ty_9>(),
4106        32usize,
4107        concat!("Size of: ", stringify!(yaml_emitter_s__bindgen_ty_9))
4108    );
4109    assert_eq!(
4110        ::std::mem::align_of::<yaml_emitter_s__bindgen_ty_9>(),
4111        8usize,
4112        concat!("Alignment of ", stringify!(yaml_emitter_s__bindgen_ty_9))
4113    );
4114    assert_eq!(
4115        unsafe {
4116            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_9>())).handle as *const _ as usize
4117        },
4118        0usize,
4119        concat!(
4120            "Offset of field: ",
4121            stringify!(yaml_emitter_s__bindgen_ty_9),
4122            "::",
4123            stringify!(handle)
4124        )
4125    );
4126    assert_eq!(
4127        unsafe {
4128            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_9>())).handle_length as *const _
4129                as usize
4130        },
4131        8usize,
4132        concat!(
4133            "Offset of field: ",
4134            stringify!(yaml_emitter_s__bindgen_ty_9),
4135            "::",
4136            stringify!(handle_length)
4137        )
4138    );
4139    assert_eq!(
4140        unsafe {
4141            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_9>())).suffix as *const _ as usize
4142        },
4143        16usize,
4144        concat!(
4145            "Offset of field: ",
4146            stringify!(yaml_emitter_s__bindgen_ty_9),
4147            "::",
4148            stringify!(suffix)
4149        )
4150    );
4151    assert_eq!(
4152        unsafe {
4153            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_9>())).suffix_length as *const _
4154                as usize
4155        },
4156        24usize,
4157        concat!(
4158            "Offset of field: ",
4159            stringify!(yaml_emitter_s__bindgen_ty_9),
4160            "::",
4161            stringify!(suffix_length)
4162        )
4163    );
4164}
4165#[repr(C)]
4166pub struct yaml_emitter_s__bindgen_ty_10 {
4167    pub value: *mut yaml_char_t,
4168    pub length: usize,
4169    pub multiline: ::std::os::raw::c_int,
4170    pub flow_plain_allowed: ::std::os::raw::c_int,
4171    pub block_plain_allowed: ::std::os::raw::c_int,
4172    pub single_quoted_allowed: ::std::os::raw::c_int,
4173    pub block_allowed: ::std::os::raw::c_int,
4174    pub style: yaml_scalar_style_t,
4175}
4176#[test]
4177fn bindgen_test_layout_yaml_emitter_s__bindgen_ty_10() {
4178    assert_eq!(
4179        ::std::mem::size_of::<yaml_emitter_s__bindgen_ty_10>(),
4180        40usize,
4181        concat!("Size of: ", stringify!(yaml_emitter_s__bindgen_ty_10))
4182    );
4183    assert_eq!(
4184        ::std::mem::align_of::<yaml_emitter_s__bindgen_ty_10>(),
4185        8usize,
4186        concat!("Alignment of ", stringify!(yaml_emitter_s__bindgen_ty_10))
4187    );
4188    assert_eq!(
4189        unsafe {
4190            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_10>())).value as *const _ as usize
4191        },
4192        0usize,
4193        concat!(
4194            "Offset of field: ",
4195            stringify!(yaml_emitter_s__bindgen_ty_10),
4196            "::",
4197            stringify!(value)
4198        )
4199    );
4200    assert_eq!(
4201        unsafe {
4202            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_10>())).length as *const _ as usize
4203        },
4204        8usize,
4205        concat!(
4206            "Offset of field: ",
4207            stringify!(yaml_emitter_s__bindgen_ty_10),
4208            "::",
4209            stringify!(length)
4210        )
4211    );
4212    assert_eq!(
4213        unsafe {
4214            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_10>())).multiline as *const _ as usize
4215        },
4216        16usize,
4217        concat!(
4218            "Offset of field: ",
4219            stringify!(yaml_emitter_s__bindgen_ty_10),
4220            "::",
4221            stringify!(multiline)
4222        )
4223    );
4224    assert_eq!(
4225        unsafe {
4226            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_10>())).flow_plain_allowed as *const _
4227                as usize
4228        },
4229        20usize,
4230        concat!(
4231            "Offset of field: ",
4232            stringify!(yaml_emitter_s__bindgen_ty_10),
4233            "::",
4234            stringify!(flow_plain_allowed)
4235        )
4236    );
4237    assert_eq!(
4238        unsafe {
4239            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_10>())).block_plain_allowed
4240                as *const _ as usize
4241        },
4242        24usize,
4243        concat!(
4244            "Offset of field: ",
4245            stringify!(yaml_emitter_s__bindgen_ty_10),
4246            "::",
4247            stringify!(block_plain_allowed)
4248        )
4249    );
4250    assert_eq!(
4251        unsafe {
4252            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_10>())).single_quoted_allowed
4253                as *const _ as usize
4254        },
4255        28usize,
4256        concat!(
4257            "Offset of field: ",
4258            stringify!(yaml_emitter_s__bindgen_ty_10),
4259            "::",
4260            stringify!(single_quoted_allowed)
4261        )
4262    );
4263    assert_eq!(
4264        unsafe {
4265            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_10>())).block_allowed as *const _
4266                as usize
4267        },
4268        32usize,
4269        concat!(
4270            "Offset of field: ",
4271            stringify!(yaml_emitter_s__bindgen_ty_10),
4272            "::",
4273            stringify!(block_allowed)
4274        )
4275    );
4276    assert_eq!(
4277        unsafe {
4278            &(*(::std::ptr::null::<yaml_emitter_s__bindgen_ty_10>())).style as *const _ as usize
4279        },
4280        36usize,
4281        concat!(
4282            "Offset of field: ",
4283            stringify!(yaml_emitter_s__bindgen_ty_10),
4284            "::",
4285            stringify!(style)
4286        )
4287    );
4288}
4289#[test]
4290fn bindgen_test_layout_yaml_emitter_s() {
4291    assert_eq!(
4292        ::std::mem::size_of::<yaml_emitter_s>(),
4293        432usize,
4294        concat!("Size of: ", stringify!(yaml_emitter_s))
4295    );
4296    assert_eq!(
4297        ::std::mem::align_of::<yaml_emitter_s>(),
4298        8usize,
4299        concat!("Alignment of ", stringify!(yaml_emitter_s))
4300    );
4301    assert_eq!(
4302        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).error as *const _ as usize },
4303        0usize,
4304        concat!(
4305            "Offset of field: ",
4306            stringify!(yaml_emitter_s),
4307            "::",
4308            stringify!(error)
4309        )
4310    );
4311    assert_eq!(
4312        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).problem as *const _ as usize },
4313        8usize,
4314        concat!(
4315            "Offset of field: ",
4316            stringify!(yaml_emitter_s),
4317            "::",
4318            stringify!(problem)
4319        )
4320    );
4321    assert_eq!(
4322        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).write_handler as *const _ as usize },
4323        16usize,
4324        concat!(
4325            "Offset of field: ",
4326            stringify!(yaml_emitter_s),
4327            "::",
4328            stringify!(write_handler)
4329        )
4330    );
4331    assert_eq!(
4332        unsafe {
4333            &(*(::std::ptr::null::<yaml_emitter_s>())).write_handler_data as *const _ as usize
4334        },
4335        24usize,
4336        concat!(
4337            "Offset of field: ",
4338            stringify!(yaml_emitter_s),
4339            "::",
4340            stringify!(write_handler_data)
4341        )
4342    );
4343    assert_eq!(
4344        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).output as *const _ as usize },
4345        32usize,
4346        concat!(
4347            "Offset of field: ",
4348            stringify!(yaml_emitter_s),
4349            "::",
4350            stringify!(output)
4351        )
4352    );
4353    assert_eq!(
4354        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).buffer as *const _ as usize },
4355        56usize,
4356        concat!(
4357            "Offset of field: ",
4358            stringify!(yaml_emitter_s),
4359            "::",
4360            stringify!(buffer)
4361        )
4362    );
4363    assert_eq!(
4364        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).raw_buffer as *const _ as usize },
4365        88usize,
4366        concat!(
4367            "Offset of field: ",
4368            stringify!(yaml_emitter_s),
4369            "::",
4370            stringify!(raw_buffer)
4371        )
4372    );
4373    assert_eq!(
4374        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).encoding as *const _ as usize },
4375        120usize,
4376        concat!(
4377            "Offset of field: ",
4378            stringify!(yaml_emitter_s),
4379            "::",
4380            stringify!(encoding)
4381        )
4382    );
4383    assert_eq!(
4384        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).canonical as *const _ as usize },
4385        124usize,
4386        concat!(
4387            "Offset of field: ",
4388            stringify!(yaml_emitter_s),
4389            "::",
4390            stringify!(canonical)
4391        )
4392    );
4393    assert_eq!(
4394        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).best_indent as *const _ as usize },
4395        128usize,
4396        concat!(
4397            "Offset of field: ",
4398            stringify!(yaml_emitter_s),
4399            "::",
4400            stringify!(best_indent)
4401        )
4402    );
4403    assert_eq!(
4404        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).best_width as *const _ as usize },
4405        132usize,
4406        concat!(
4407            "Offset of field: ",
4408            stringify!(yaml_emitter_s),
4409            "::",
4410            stringify!(best_width)
4411        )
4412    );
4413    assert_eq!(
4414        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).unicode as *const _ as usize },
4415        136usize,
4416        concat!(
4417            "Offset of field: ",
4418            stringify!(yaml_emitter_s),
4419            "::",
4420            stringify!(unicode)
4421        )
4422    );
4423    assert_eq!(
4424        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).line_break as *const _ as usize },
4425        140usize,
4426        concat!(
4427            "Offset of field: ",
4428            stringify!(yaml_emitter_s),
4429            "::",
4430            stringify!(line_break)
4431        )
4432    );
4433    assert_eq!(
4434        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).states as *const _ as usize },
4435        144usize,
4436        concat!(
4437            "Offset of field: ",
4438            stringify!(yaml_emitter_s),
4439            "::",
4440            stringify!(states)
4441        )
4442    );
4443    assert_eq!(
4444        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).state as *const _ as usize },
4445        168usize,
4446        concat!(
4447            "Offset of field: ",
4448            stringify!(yaml_emitter_s),
4449            "::",
4450            stringify!(state)
4451        )
4452    );
4453    assert_eq!(
4454        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).events as *const _ as usize },
4455        176usize,
4456        concat!(
4457            "Offset of field: ",
4458            stringify!(yaml_emitter_s),
4459            "::",
4460            stringify!(events)
4461        )
4462    );
4463    assert_eq!(
4464        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).indents as *const _ as usize },
4465        208usize,
4466        concat!(
4467            "Offset of field: ",
4468            stringify!(yaml_emitter_s),
4469            "::",
4470            stringify!(indents)
4471        )
4472    );
4473    assert_eq!(
4474        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).tag_directives as *const _ as usize },
4475        232usize,
4476        concat!(
4477            "Offset of field: ",
4478            stringify!(yaml_emitter_s),
4479            "::",
4480            stringify!(tag_directives)
4481        )
4482    );
4483    assert_eq!(
4484        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).indent as *const _ as usize },
4485        256usize,
4486        concat!(
4487            "Offset of field: ",
4488            stringify!(yaml_emitter_s),
4489            "::",
4490            stringify!(indent)
4491        )
4492    );
4493    assert_eq!(
4494        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).flow_level as *const _ as usize },
4495        260usize,
4496        concat!(
4497            "Offset of field: ",
4498            stringify!(yaml_emitter_s),
4499            "::",
4500            stringify!(flow_level)
4501        )
4502    );
4503    assert_eq!(
4504        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).root_context as *const _ as usize },
4505        264usize,
4506        concat!(
4507            "Offset of field: ",
4508            stringify!(yaml_emitter_s),
4509            "::",
4510            stringify!(root_context)
4511        )
4512    );
4513    assert_eq!(
4514        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).sequence_context as *const _ as usize },
4515        268usize,
4516        concat!(
4517            "Offset of field: ",
4518            stringify!(yaml_emitter_s),
4519            "::",
4520            stringify!(sequence_context)
4521        )
4522    );
4523    assert_eq!(
4524        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).mapping_context as *const _ as usize },
4525        272usize,
4526        concat!(
4527            "Offset of field: ",
4528            stringify!(yaml_emitter_s),
4529            "::",
4530            stringify!(mapping_context)
4531        )
4532    );
4533    assert_eq!(
4534        unsafe {
4535            &(*(::std::ptr::null::<yaml_emitter_s>())).simple_key_context as *const _ as usize
4536        },
4537        276usize,
4538        concat!(
4539            "Offset of field: ",
4540            stringify!(yaml_emitter_s),
4541            "::",
4542            stringify!(simple_key_context)
4543        )
4544    );
4545    assert_eq!(
4546        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).line as *const _ as usize },
4547        280usize,
4548        concat!(
4549            "Offset of field: ",
4550            stringify!(yaml_emitter_s),
4551            "::",
4552            stringify!(line)
4553        )
4554    );
4555    assert_eq!(
4556        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).column as *const _ as usize },
4557        284usize,
4558        concat!(
4559            "Offset of field: ",
4560            stringify!(yaml_emitter_s),
4561            "::",
4562            stringify!(column)
4563        )
4564    );
4565    assert_eq!(
4566        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).whitespace as *const _ as usize },
4567        288usize,
4568        concat!(
4569            "Offset of field: ",
4570            stringify!(yaml_emitter_s),
4571            "::",
4572            stringify!(whitespace)
4573        )
4574    );
4575    assert_eq!(
4576        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).indention as *const _ as usize },
4577        292usize,
4578        concat!(
4579            "Offset of field: ",
4580            stringify!(yaml_emitter_s),
4581            "::",
4582            stringify!(indention)
4583        )
4584    );
4585    assert_eq!(
4586        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).open_ended as *const _ as usize },
4587        296usize,
4588        concat!(
4589            "Offset of field: ",
4590            stringify!(yaml_emitter_s),
4591            "::",
4592            stringify!(open_ended)
4593        )
4594    );
4595    assert_eq!(
4596        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).anchor_data as *const _ as usize },
4597        304usize,
4598        concat!(
4599            "Offset of field: ",
4600            stringify!(yaml_emitter_s),
4601            "::",
4602            stringify!(anchor_data)
4603        )
4604    );
4605    assert_eq!(
4606        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).tag_data as *const _ as usize },
4607        328usize,
4608        concat!(
4609            "Offset of field: ",
4610            stringify!(yaml_emitter_s),
4611            "::",
4612            stringify!(tag_data)
4613        )
4614    );
4615    assert_eq!(
4616        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).scalar_data as *const _ as usize },
4617        360usize,
4618        concat!(
4619            "Offset of field: ",
4620            stringify!(yaml_emitter_s),
4621            "::",
4622            stringify!(scalar_data)
4623        )
4624    );
4625    assert_eq!(
4626        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).opened as *const _ as usize },
4627        400usize,
4628        concat!(
4629            "Offset of field: ",
4630            stringify!(yaml_emitter_s),
4631            "::",
4632            stringify!(opened)
4633        )
4634    );
4635    assert_eq!(
4636        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).closed as *const _ as usize },
4637        404usize,
4638        concat!(
4639            "Offset of field: ",
4640            stringify!(yaml_emitter_s),
4641            "::",
4642            stringify!(closed)
4643        )
4644    );
4645    assert_eq!(
4646        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).anchors as *const _ as usize },
4647        408usize,
4648        concat!(
4649            "Offset of field: ",
4650            stringify!(yaml_emitter_s),
4651            "::",
4652            stringify!(anchors)
4653        )
4654    );
4655    assert_eq!(
4656        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).last_anchor_id as *const _ as usize },
4657        416usize,
4658        concat!(
4659            "Offset of field: ",
4660            stringify!(yaml_emitter_s),
4661            "::",
4662            stringify!(last_anchor_id)
4663        )
4664    );
4665    assert_eq!(
4666        unsafe { &(*(::std::ptr::null::<yaml_emitter_s>())).document as *const _ as usize },
4667        424usize,
4668        concat!(
4669            "Offset of field: ",
4670            stringify!(yaml_emitter_s),
4671            "::",
4672            stringify!(document)
4673        )
4674    );
4675}
4676pub type yaml_emitter_t = yaml_emitter_s;
4677extern "C" {
4678    pub fn yaml_emitter_initialize(emitter: *mut yaml_emitter_t) -> ::std::os::raw::c_int;
4679}
4680extern "C" {
4681    pub fn yaml_emitter_delete(emitter: *mut yaml_emitter_t);
4682}
4683extern "C" {
4684    pub fn yaml_emitter_set_output_string(
4685        emitter: *mut yaml_emitter_t,
4686        output: *mut ::std::os::raw::c_uchar,
4687        size: usize,
4688        size_written: *mut usize,
4689    );
4690}
4691extern "C" {
4692    pub fn yaml_emitter_set_output_file(emitter: *mut yaml_emitter_t, file: *mut FILE);
4693}
4694extern "C" {
4695    pub fn yaml_emitter_set_output(
4696        emitter: *mut yaml_emitter_t,
4697        handler: yaml_write_handler_t,
4698        data: *mut ::std::os::raw::c_void,
4699    );
4700}
4701extern "C" {
4702    pub fn yaml_emitter_set_encoding(emitter: *mut yaml_emitter_t, encoding: yaml_encoding_t);
4703}
4704extern "C" {
4705    pub fn yaml_emitter_set_canonical(
4706        emitter: *mut yaml_emitter_t,
4707        canonical: ::std::os::raw::c_int,
4708    );
4709}
4710extern "C" {
4711    pub fn yaml_emitter_set_indent(emitter: *mut yaml_emitter_t, indent: ::std::os::raw::c_int);
4712}
4713extern "C" {
4714    pub fn yaml_emitter_set_width(emitter: *mut yaml_emitter_t, width: ::std::os::raw::c_int);
4715}
4716extern "C" {
4717    pub fn yaml_emitter_set_unicode(emitter: *mut yaml_emitter_t, unicode: ::std::os::raw::c_int);
4718}
4719extern "C" {
4720    pub fn yaml_emitter_set_break(emitter: *mut yaml_emitter_t, line_break: yaml_break_t);
4721}
4722extern "C" {
4723    pub fn yaml_emitter_emit(
4724        emitter: *mut yaml_emitter_t,
4725        event: *mut yaml_event_t,
4726    ) -> ::std::os::raw::c_int;
4727}
4728extern "C" {
4729    pub fn yaml_emitter_open(emitter: *mut yaml_emitter_t) -> ::std::os::raw::c_int;
4730}
4731extern "C" {
4732    pub fn yaml_emitter_close(emitter: *mut yaml_emitter_t) -> ::std::os::raw::c_int;
4733}
4734extern "C" {
4735    pub fn yaml_emitter_dump(
4736        emitter: *mut yaml_emitter_t,
4737        document: *mut yaml_document_t,
4738    ) -> ::std::os::raw::c_int;
4739}
4740extern "C" {
4741    pub fn yaml_emitter_flush(emitter: *mut yaml_emitter_t) -> ::std::os::raw::c_int;
4742}