• 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 #[repr(C)]
9 #[derive(Debug, Copy, Clone)]
10 pub struct DoesNotUseU<T, V> {
11     pub t: T,
12     pub v: V,
13     pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
14     pub _phantom_1: ::std::marker::PhantomData<::std::cell::UnsafeCell<V>>,
15 }
16 impl<T, V> Default for DoesNotUseU<T, V> {
default() -> Self17     fn default() -> Self {
18         let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
19         unsafe {
20             ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
21             s.assume_init()
22         }
23     }
24 }
25 pub type Alias = DoesNotUseU<::std::os::raw::c_int, ::std::os::raw::c_char>;
26