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::*;

/// Events on which update task is capable of invoking progress handler.
///
///
/// Note: MLUpdateProgressEventMiniBatchEnd may induce performance problems
/// during pipeline execution.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/coreml/mlupdateprogressevent?language=objc)
// NS_OPTIONS
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct MLUpdateProgressEvent(pub NSInteger);
bitflags::bitflags! {
    impl MLUpdateProgressEvent: NSInteger {
        #[doc(alias = "MLUpdateProgressEventTrainingBegin")]
        const TrainingBegin = 1<<0;
        #[doc(alias = "MLUpdateProgressEventEpochEnd")]
        const EpochEnd = 1<<1;
        #[doc(alias = "MLUpdateProgressEventMiniBatchEnd")]
        const MiniBatchEnd = 1<<2;
    }
}

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

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