1 2 3 4 5 6 7 8 9 10
use crate::{define_obj_type, ns, objc}; #[objc::protocol(MLComputeDeviceProtocol)] pub trait ComputeDevice: objc::Obj {} define_obj_type!( pub AnyComputeDevice(ns::Id) ); impl ComputeDevice for AnyComputeDevice {}