objc2-ml-compute 0.3.2

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

use crate::*;

extern_class!(
    /// A batched matrix multiplication layer
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/mlcompute/mlcmatmullayer?language=objc)
    #[unsafe(super(MLCLayer, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "MLCLayer")]
    #[deprecated]
    pub struct MLCMatMulLayer;
);

#[cfg(feature = "MLCLayer")]
extern_conformance!(
    unsafe impl NSObjectProtocol for MLCMatMulLayer {}
);

#[cfg(feature = "MLCLayer")]
impl MLCMatMulLayer {
    extern_methods!(
        #[cfg(feature = "MLCMatMulDescriptor")]
        /// The matrix multiplication descriptor
        #[deprecated]
        #[unsafe(method(descriptor))]
        #[unsafe(method_family = none)]
        pub unsafe fn descriptor(&self) -> Retained<MLCMatMulDescriptor>;

        #[cfg(feature = "MLCMatMulDescriptor")]
        /// Create a matrix multiply layer
        ///
        /// Parameter `descriptor`: A matrix multiply descriptor
        ///
        /// Returns: A new layer for matrix multiplication.
        #[deprecated]
        #[unsafe(method(layerWithDescriptor:))]
        #[unsafe(method_family = none)]
        pub unsafe fn layerWithDescriptor(
            descriptor: &MLCMatMulDescriptor,
        ) -> Option<Retained<Self>>;
    );
}

/// Methods declared on superclass `MLCLayer`.
#[cfg(feature = "MLCLayer")]
impl MLCMatMulLayer {
    extern_methods!(
        #[deprecated]
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;

        #[deprecated]
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
    );
}