use core::cell::UnsafeCell; use core::marker::{PhantomData, PhantomPinned}; /// [Apple's documentation](https://developer.apple.com/documentation/iosurface/iosurfaceref?language=objc) #[repr(C)] pub struct IOSurfaceRef { inner: [u8; 0], _p: UnsafeCell, PhantomPinned)>>, } #[cfg(feature = "objc2-core-foundation")] objc2_core_foundation::cf_type!( unsafe impl IOSurfaceRef {} ); #[cfg(feature = "objc2")] objc2::cf_objc2_type!( unsafe impl RefEncode<"__IOSurface"> for IOSurfaceRef {} );