use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
#[unsafe(super(MLCLayer, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MLCLayer")]
#[deprecated]
pub struct MLCEmbeddingLayer;
);
#[cfg(feature = "MLCLayer")]
extern_conformance!(
unsafe impl NSObjectProtocol for MLCEmbeddingLayer {}
);
#[cfg(feature = "MLCLayer")]
impl MLCEmbeddingLayer {
extern_methods!(
#[cfg(feature = "MLCEmbeddingDescriptor")]
#[deprecated]
#[unsafe(method(descriptor))]
#[unsafe(method_family = none)]
pub unsafe fn descriptor(&self) -> Retained<MLCEmbeddingDescriptor>;
#[cfg(feature = "MLCTensor")]
#[deprecated]
#[unsafe(method(weights))]
#[unsafe(method_family = none)]
pub unsafe fn weights(&self) -> Retained<MLCTensor>;
#[cfg(feature = "MLCTensorParameter")]
#[deprecated]
#[unsafe(method(weightsParameter))]
#[unsafe(method_family = none)]
pub unsafe fn weightsParameter(&self) -> Retained<MLCTensorParameter>;
#[cfg(all(feature = "MLCEmbeddingDescriptor", feature = "MLCTensor"))]
#[deprecated]
#[unsafe(method(layerWithDescriptor:weights:))]
#[unsafe(method_family = none)]
pub unsafe fn layerWithDescriptor_weights(
descriptor: &MLCEmbeddingDescriptor,
weights: &MLCTensor,
) -> Retained<Self>;
);
}
#[cfg(feature = "MLCLayer")]
impl MLCEmbeddingLayer {
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>;
);
}