• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #![allow(
2     dead_code,
3     non_snake_case,
4     non_camel_case_types,
5     non_upper_case_globals
6 )]
7 
8 #[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)]
9 pub mod root {
10     #[allow(unused_imports)]
11     use self::super::root;
12     pub mod mozilla {
13         #[allow(unused_imports)]
14         use self::super::super::root;
15         #[repr(C)]
16         #[derive(Debug, Default, Copy, Clone)]
17         pub struct Maybe {
18             pub _address: u8,
19         }
20         pub type Maybe_ValueType<T> = T;
21     }
22     #[repr(C)]
23     #[derive(Debug, Default, Copy, Clone)]
24     pub struct CapturingContentInfo {
25         pub a: u8,
26     }
27     #[test]
bindgen_test_layout_CapturingContentInfo()28     fn bindgen_test_layout_CapturingContentInfo() {
29         const UNINIT: ::std::mem::MaybeUninit<CapturingContentInfo> =
30             ::std::mem::MaybeUninit::uninit();
31         let ptr = UNINIT.as_ptr();
32         assert_eq!(
33             ::std::mem::size_of::<CapturingContentInfo>(),
34             1usize,
35             concat!("Size of: ", stringify!(CapturingContentInfo))
36         );
37         assert_eq!(
38             ::std::mem::align_of::<CapturingContentInfo>(),
39             1usize,
40             concat!("Alignment of ", stringify!(CapturingContentInfo))
41         );
42         assert_eq!(
43             unsafe { ::std::ptr::addr_of!((*ptr).a) as usize - ptr as usize },
44             0usize,
45             concat!(
46                 "Offset of field: ",
47                 stringify!(CapturingContentInfo),
48                 "::",
49                 stringify!(a)
50             )
51         );
52     }
53 }
54