objc2-core-foundation 0.3.1

Bindings to the CoreFoundation framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use core::{
    cell::UnsafeCell,
    marker::{PhantomData, PhantomPinned},
};

/// An opaque type.
///
/// This is used to avoid problems with e.g. getting references from
/// `CFArray` (we can't use `c_void` as the default type, as `&c_void` would
/// be incorrect).
#[repr(C)]
#[doc(hidden)]
#[allow(dead_code, unreachable_pub)]
pub struct Opaque {
    inner: [u8; 0],
    _p: UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>,
}