• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)]
2 #[repr(C)]
3 #[derive(Debug, Copy, Clone)]
4 pub struct Point<T> {
5     pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<T>>,
6     pub x: T,
7     pub y: T,
8 }
9 impl<T> Default for Point<T> {
default() -> Self10     fn default() -> Self {
11         let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
12         unsafe {
13             ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
14             s.assume_init()
15         }
16     }
17 }
18 pub type IntPoint2D = Point<::std::os::raw::c_int>;
19 pub type IntVec2D = Point<::std::os::raw::c_int>;
20