objc2-core-ml 0.3.2

Bindings to the CoreML framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;

use crate::*;

/// The optimization strategy for the model specialization.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/coreml/mlspecializationstrategy?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct MLSpecializationStrategy(pub NSInteger);
impl MLSpecializationStrategy {
    /// The strategy that works well for most applications.
    #[doc(alias = "MLSpecializationStrategyDefault")]
    pub const Default: Self = Self(0);
    /// Prefer the prediction latency at the potential cost of specialization time, memory footprint, and the disk space usage of specialized artifacts.
    #[doc(alias = "MLSpecializationStrategyFastPrediction")]
    pub const FastPrediction: Self = Self(1);
}

unsafe impl Encode for MLSpecializationStrategy {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for MLSpecializationStrategy {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}