1#[cfg(target_vendor = "apple")]
7use objc2::rc::Retained;
8
9#[cfg(target_vendor = "apple")]
14pub struct State {
15 pub(crate) inner: Retained<objc2_core_ml::MLState>,
16}
17
18#[cfg(target_vendor = "apple")]
19impl std::fmt::Debug for State {
20 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
21 f.debug_struct("State").finish()
22 }
23}
24
25#[cfg(target_vendor = "apple")]
26unsafe impl Send for State {}
27
28#[cfg(not(target_vendor = "apple"))]
29#[derive(Debug)]
30pub struct State {
31 _private: (),
32}